VirtualBox

Ignore:
Timestamp:
Jun 25, 2009 11:53:37 AM (15 years ago)
Author:
vboxsync
Message:

API/others: Renamed IConsole::discardSavedState to IConsole::forgetSavedState, added parameter. Deleted old IConsole::powerDown, renamed IConsole::powerDownAsync to IConsole::powerDown (as promised for 2.1). Implemented perl sample code for registering a hard disk. Cleaned up constant formatting in the API docs. Updated SDK changelog. Renamed com/errorprint2.h to com/errorprint.h, added a few assertion variants. Eliminated com/errorprint_legacy.h. Adjusted all files using the affected headers and APIs. Renamed tstHeadless2 to tstHeadless.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/webservice/samples/perl/clienttest.pl

    r20827 r20928  
    3939my $optMode;
    4040my $vmname;
     41my $disk;
    4142
    4243while (my $this = shift(@ARGV))
     
    6667        {
    6768            die "[$cmd] Missing parameter: You must specify the name of the VM to start.\nStopped";
     69        }
     70    }
     71    elsif ($this eq 'openhd')
     72    {
     73        $optMode = $this;
     74
     75        if (!($disk = shift(@ARGV)))
     76        {
     77            die "[$cmd] Missing parameter: You must specify the name of the disk to open.\nStopped";
    6878        }
    6979    }
     
    148158    vboxService->IWebsessionManager_logoff($vbox);
    149159}
     160elsif ($optMode eq "openhd")
     161{
     162    my $harddisk = vboxService->IVirtualBox_openHardDisk($vbox, $disk, 1, 0, "", 0, "");
     163}
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