VirtualBox

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


Ignore:
Timestamp:
Aug 3, 2012 9:52:23 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
79746
Message:

Main/VirtualBox+Machine: new API method for getting VMs which are in the given groups, plus a bit of performance tuning/simplification

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

Legend:

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

    r42551 r42569  
    673673
    674674    /**
    675      * Checks if this machine is accessible, without attempting to load the
    676      * config file.
    677      *
    678      * @note This method doesn't check this object's readiness. Intended to be
    679      * used by ready Machine children (whose readiness is bound to the parent's
    680      * one) or after doing addCaller() manually.
     675     * Returns various information about this machine.
     676     *
     677     * @note This method doesn't lock this object or check its readiness.
     678     * Intended to be used only after doing addCaller() manually and locking it
     679     * for reading.
    681680     */
    682681    ChipsetType_T getChipsetType() const { return mHWData->mChipsetType; }
     
    688687    void allowStateModification()           { mData->m_fAllowStateModification = true; }
    689688    void disallowStateModification()        { mData->m_fAllowStateModification = false; }
     689
     690    const StringsList &getGroups() const { return mUserData->s.llGroups; }
    690691
    691692    // callback handlers
  • trunk/src/VBox/Main/include/VirtualBoxImpl.h

    r42210 r42569  
    137137    STDMETHOD(RegisterMachine)(IMachine *aMachine);
    138138    STDMETHOD(FindMachine)(IN_BSTR aNameOrId, IMachine **aMachine);
     139    STDMETHOD(GetMachinesByGroups)(ComSafeArrayIn(IN_BSTR, aGroups), ComSafeArrayOut(IMachine *, aMachines));
    139140    STDMETHOD(GetMachineStates)(ComSafeArrayIn(IMachine *, aMachines), ComSafeArrayOut(MachineState_T, aStates));
    140141    STDMETHOD(CreateAppliance)(IAppliance **anAppliance);
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