VirtualBox

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


Ignore:
Timestamp:
Feb 8, 2011 8:36:00 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
69899
Message:

Main/VBoxManage: Introduced facility handling for more fine grained status reporting of Guest Additions components.

File:
1 edited

Legend:

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

    r35638 r35887  
    44
    55/*
    6  * Copyright (C) 2006-2010 Oracle Corporation
     6 * Copyright (C) 2006-2011 Oracle Corporation
    77 *
    88 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2020#include "VirtualBoxBase.h"
    2121#include <iprt/list.h>
     22#include <iprt/time.h>
    2223#include <VBox/ostypes.h>
    2324
     
    8889
    8990    // IGuest methods
     91    STDMETHOD(GetFacilityStatus)(AdditionsFacilityType aType, LONGLONG *aTimestamp, AdditionsFacilityStatus *aStatus);
    9092    STDMETHOD(GetAdditionsStatus)(AdditionsRunLevelType_T aLevel, BOOL *aActive);
    9193    STDMETHOD(SetCredentials)(IN_BSTR aUserName, IN_BSTR aPassword,
     
    129131
    130132private:
    131 
    132     // Internal tasks
     133#ifdef VBOX_WITH_GUEST_CONTROL
     134    // Internal tasks.
    133135    struct TaskGuest; /* Worker thread helper. */
    134 #ifdef VBOX_WITH_GUEST_CONTROL
    135136    HRESULT taskCopyFile(TaskGuest *aTask);
    136137    HRESULT taskUpdateGuestAdditions(TaskGuest *aTask);
    137138
     139    // Internal callback context handling.
    138140    struct CallbackContext
    139141    {
     
    183185# endif
    184186
     187    struct FacilityData
     188    {
     189        RTTIMESPEC                  tsLastUpdated;
     190        AdditionsFacilityStatus_T   curStatus;
     191    };
     192    typedef std::map< AdditionsFacilityType_T, FacilityData > FacilityMap;
     193    typedef std::map< AdditionsFacilityType_T, FacilityData >::iterator FacilityMapIter;
     194
    185195    struct Data
    186196    {
     
    190200
    191201        Bstr                    mOSTypeId;
     202
     203        FacilityMap             mFacilityMap;
    192204        AdditionsRunLevelType_T mAdditionsRunLevel;
    193205        Bstr                    mAdditionsVersion;
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