VirtualBox

Changeset 17079 in vbox


Ignore:
Timestamp:
Feb 24, 2009 4:59:51 PM (16 years ago)
Author:
vboxsync
Message:

IPRT: make RTGetOpt accept non-'--' parameters; use RTGetOpt for 'VBoxManage list'; default to short output for 'list vms' unless --long is specified

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r17033 r17079  
    18161816            ComPtr<IMachine> machine;
    18171817            snapshot->COMGETTER(Machine)(machine.asOutParam());
    1818             showVMInfo(a->virtualBox, machine, console);
     1818            showVMInfo(a->virtualBox, machine, VMINFO_NONE, console);
    18191819        }
    18201820        else
     
    30243024            handlerArg.argc = argc - iCmdArg;
    30253025            handlerArg.argv = &argv[iCmdArg];
     3026
    30263027            rc = commandHandlers[commandIndex].handler(&handlerArg);
    30273028            break;
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h

    r17033 r17079  
    9898    int argc;
    9999    char **argv;
     100
    100101#ifdef USE_XPCOM_QUEUE
    101102    nsCOMPtr<nsIEventQueue> eventQ;
     
    117118    VMINFO_STATISTICS       = 2,    /**< guest statistics */
    118119    VMINFO_FULL             = 3,    /**< both */
    119     VMINFO_MACHINEREADABLE  = 4     /**< both, and make it machine readable */
     120    VMINFO_MACHINEREADABLE  = 4,    /**< both, and make it machine readable */
     121    VMINFO_COMPACT          = 5
    120122} VMINFO_DETAILS;
    121123
     
    149151void showSnapshots(ComPtr<ISnapshot> rootSnapshot, VMINFO_DETAILS details, const com::Bstr &prefix = "", int level = 0);
    150152int handleShowVMInfo(HandlerArg *a);
    151 HRESULT showVMInfo(ComPtr <IVirtualBox> virtualBox, ComPtr<IMachine> machine,
    152                    ComPtr <IConsole> console = ComPtr <IConsole> (),
    153                    VMINFO_DETAILS details = VMINFO_NONE);
     153HRESULT showVMInfo(ComPtr<IVirtualBox> virtualBox,
     154                   ComPtr<IMachine> machine,
     155                   VMINFO_DETAILS details = VMINFO_NONE,
     156                   ComPtr <IConsole> console = ComPtr<IConsole>());
    154157
    155158/* VBoxManageList.cpp */
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