VirtualBox

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


Ignore:
Timestamp:
Aug 2, 2012 12:11:44 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
79703
Message:

Guest Control 2.0: Update.

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

Legend:

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

    r42525 r42530  
    7272typedef std::vector <Utf8Str> ProcessArguments;
    7373
     74class GuestProcessStreamBlock;
     75
    7476
    7577/**
     
    116118    int                         mRC;
    117119};
     120
    118121
    119122/*
     
    174177};
    175178
     179
    176180/*
    177181 * Class representing a guest control process event.
     
    207211};
    208212
     213
    209214/**
    210215 * Simple structure mantaining guest credentials.
     
    217222};
    218223
     224
    219225typedef std::vector <Utf8Str> GuestEnvironmentArray;
    220226class GuestEnvironment
     
    259265
    260266    std::map <Utf8Str, Utf8Str> mEnvironment;
     267};
     268
     269
     270/**
     271 * Structure representing information of a
     272 * file system object.
     273 */
     274struct GuestFsObjData
     275{
     276    /** Helper function to extract the data from
     277     *  a guest stream block. */
     278    int From(const GuestProcessStreamBlock &strmBlk);
     279
     280    int64_t              mAccessTime;
     281    int64_t              mAllocatedSize;
     282    int64_t              mBirthTime;
     283    int64_t              mChangeTime;
     284    uint32_t             mDeviceNumber;
     285    Utf8Str              mFileAttrs;
     286    uint32_t             mGenerationID;
     287    uint32_t             mGID;
     288    Utf8Str              mGroupName;
     289    uint32_t             mNumHardLinks;
     290    int64_t              mModificationTime;
     291    Utf8Str              mName;
     292    int64_t              mNodeID;
     293    uint32_t             mNodeIDDevice;
     294    int64_t              mObjectSize;
     295    FsObjType_T          mType;
     296    uint32_t             mUID;
     297    uint32_t             mUserFlags;
     298    Utf8Str              mUserName;
     299    Utf8Str              mACL;
    261300};
    262301
     
    281320};
    282321
     322
    283323/**
    284324 * Class representing the "value" side of a "key=value" pair.
     
    313353public:
    314354
    315     GuestProcessStreamBlock();
    316 
    317     //GuestProcessStreamBlock(GuestProcessStreamBlock &);
    318 
    319     virtual ~GuestProcessStreamBlock();
     355    GuestProcessStreamBlock(void);
     356
     357    virtual ~GuestProcessStreamBlock(void);
    320358
    321359public:
     
    327365#endif
    328366
    329     int GetInt64Ex(const char *pszKey, int64_t *piVal);
    330 
    331     int64_t GetInt64(const char *pszKey);
    332 
    333     size_t GetCount();
    334 
    335     const char* GetString(const char *pszKey);
    336 
    337     int GetUInt32Ex(const char *pszKey, uint32_t *puVal);
    338 
    339     uint32_t GetUInt32(const char *pszKey);
     367    int GetInt64Ex(const char *pszKey, int64_t *piVal) const;
     368
     369    int64_t GetInt64(const char *pszKey) const;
     370
     371    size_t GetCount(void) const;
     372
     373    const char* GetString(const char *pszKey) const;
     374
     375    int GetUInt32Ex(const char *pszKey, uint32_t *puVal) const;
     376
     377    uint32_t GetUInt32(const char *pszKey) const;
    340378
    341379    int SetValue(const char *pszKey, const char *pszValue);
  • trunk/src/VBox/Main/include/GuestFsObjInfoImpl.h

    r42095 r42530  
    2121
    2222#include "VirtualBoxBase.h"
     23#include "GuestCtrlImplPrivate.h"
    2324
    2425/**
     
    7879private:
    7980
    80     struct Data
    81     {
    82         LONG64               mAccessTime;
    83         LONG64               mAllocatedSize;
    84         LONG64               mBirthTime;
    85         LONG64               mChangeTime;
    86         ULONG                mDeviceNumber;
    87         Utf8Str              mFileAttrs;
    88         ULONG                mGenerationID;
    89         ULONG                mGID;
    90         Utf8Str              mGroupName;
    91         ULONG                mNumHardLinks;
    92         LONG64               mModificationTime;
    93         Utf8Str              mName;
    94         LONG64               mNodeID;
    95         ULONG                mNodeIDDevice;
    96         LONG64               mObjectSize;
    97         FsObjType            mType;
    98         ULONG                mUID;
    99         ULONG                mUserFlags;
    100         Utf8Str              mUserName;
    101         Utf8Str              mACL;
    102     } mData;
     81    GuestFsObjData mData;
    10382};
    10483
  • trunk/src/VBox/Main/include/GuestSessionImpl.h

    r42525 r42530  
    127127    int                     dispatchToProcess(uint32_t uContextID, uint32_t uFunction, void *pvData, size_t cbData);
    128128    int                     fileClose(ComObjPtr<GuestFile> pFile);
     129    int                     fileQueryInfoInternal(const Utf8Str &strPath, GuestFsObjData &objData);
     130    int                     fileQuerySizeInternal(const Utf8Str &strPath, int64_t *pllSize);
    129131    const GuestCredentials &getCredentials(void);
    130132    const GuestEnvironment &getEnvironment(void);
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