VirtualBox

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


Ignore:
Timestamp:
Aug 12, 2011 3:05:41 PM (13 years ago)
Author:
vboxsync
Message:

GuestCtrl: Update.

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

Legend:

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

    r38395 r38437  
    3737
    3838/** Structure representing the "value" side of a "key=value" pair. */
    39 typedef struct VBOXGUESTCTRL_STREAMPAIR
     39class VBOXGUESTCTRL_STREAMVALUE
    4040{
    41     VBOXGUESTCTRL_STREAMPAIR(const char *pszValue)
     41public:
     42
     43    VBOXGUESTCTRL_STREAMVALUE() { }
     44    VBOXGUESTCTRL_STREAMVALUE(const char *pszValue)
    4245        : mValue(pszValue) {}
    4346
     47    VBOXGUESTCTRL_STREAMVALUE(const VBOXGUESTCTRL_STREAMVALUE& aThat)
     48           : mValue(aThat.mValue) {}
     49
    4450    Utf8Str mValue;
    45 } VBOXGUESTCTRL_STREAMPAIR, *PVBOXGUESTCTRL_STREAM_PAIR;
     51};
    4652
    4753/** Map containing "key=value" pairs of a guest process stream. */
    48 typedef std::map< Utf8Str, VBOXGUESTCTRL_STREAMPAIR > GuestCtrlStreamPairs;
    49 typedef std::map< Utf8Str, VBOXGUESTCTRL_STREAMPAIR >::iterator GuestCtrlStreamPairsIter;
    50 typedef std::map< Utf8Str, VBOXGUESTCTRL_STREAMPAIR >::const_iterator GuestCtrlStreamPairsIterConst;
     54typedef std::pair< Utf8Str, VBOXGUESTCTRL_STREAMVALUE > GuestCtrlStreamPair;
     55typedef std::map < Utf8Str, VBOXGUESTCTRL_STREAMVALUE > GuestCtrlStreamPairMap;
     56typedef std::map < Utf8Str, VBOXGUESTCTRL_STREAMVALUE >::iterator GuestCtrlStreamPairMapIter;
     57typedef std::map < Utf8Str, VBOXGUESTCTRL_STREAMVALUE >::const_iterator GuestCtrlStreamPairMapIterConst;
    5158
    5259/**
     
    8592protected:
    8693
    87     GuestCtrlStreamPairs m_mapPairs;
     94    GuestCtrlStreamPairMap m_mapPairs;
    8895};
    8996
    9097/** Vector containing multiple allocated stream pair objects. */
    91 typedef std::vector< GuestProcessStreamBlock* > GuestCtrlStreamObjects;
    92 typedef std::vector< GuestProcessStreamBlock* >::iterator GuestCtrlStreamObjectsIter;
    93 typedef std::vector< GuestProcessStreamBlock* >::const_iterator GuestCtrlStreamObjectsIterConst;
     98typedef std::vector< GuestProcessStreamBlock > GuestCtrlStreamObjects;
     99typedef std::vector< GuestProcessStreamBlock >::iterator GuestCtrlStreamObjectsIter;
     100typedef std::vector< GuestProcessStreamBlock >::const_iterator GuestCtrlStreamObjectsIterConst;
    94101
    95102/**
     
    132139};
    133140
    134 struct GuestTask
     141class GuestTask
    135142{
     143
     144public:
     145
    136146    enum TaskType
    137147    {
  • trunk/src/VBox/Main/include/GuestImpl.h

    r38400 r38437  
    159159                                   ULONG aTimeoutMS, ULONG *aPID, IProgress **aProgress, int *pRC);
    160160    HRESULT executeProcessResult(const char *pszCommand, const char *pszUser, ULONG ulTimeout, PCALLBACKDATAEXECSTATUS pExecStatus, ULONG *puPID);
    161     HRESULT executeStreamQueryFsObjInfo(IN_BSTR aObjName,GuestProcessStreamBlock *pStreamBlock, PRTFSOBJINFO pObjInfo, RTFSOBJATTRADD enmAddAttribs);
     161    HRESULT executeStreamQueryFsObjInfo(IN_BSTR aObjName,GuestProcessStreamBlock &streamBlock, PRTFSOBJINFO pObjInfo, RTFSOBJATTRADD enmAddAttribs);
    162162    int     executeStreamDrain(ULONG aPID, GuestProcessStream &stream);
    163163    void    executeStreamFree(GuestCtrlStreamObjects &streamObjects);
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