VirtualBox

Changeset 43909 in vbox


Ignore:
Timestamp:
Nov 19, 2012 10:00:02 AM (12 years ago)
Author:
vboxsync
Message:

VBoxAutostart: Continue work on the service for Windows

Location:
trunk/src/VBox/Frontends/VBoxAutostart
Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxAutostart/Makefile.kmk

    r42527 r43909  
    11# $Id$
    22## @file
    3 # VBoxBalloonCtrl - Memory balloon control.
     3# VBoxAutostart - VM autostart service.
    44#
    55
    66#
    7 # Copyright (C) 2011-2012 Oracle Corporation
     7# Copyright (C) 2012 Oracle Corporation
    88#
    99# This file is part of VirtualBox Open Source Edition (OSE), as
     
    1919include $(KBUILD_PATH)/subheader.kmk
    2020
    21 PROGRAMS += VBoxAutostart
     21ifeq ($(KBUILD_TARGET),win)
     22# PROGRAMS += VBoxAutostartSvc
     23# VBoxAutostart_TEMPLATE   = VBOXMAINCLIENTEXE
     24# VBoxAutostart_SOURCES    = \
     25#       VBoxAutostartStart.cpp \
     26#       VBoxAutostartStop.cpp \
     27#       VBoxAutostartUtils.cpp \
     28#       VBoxAutostart-win.cpp
     29else
     30 PROGRAMS += VBoxAutostart
    2231 VBoxAutostart_TEMPLATE   = VBOXMAINCLIENTEXE
    2332 VBoxAutostart_SOURCES    = \
    24         VBoxAutostart.cpp \
    2533        VBoxAutostartCfg.cpp \
    2634        VBoxAutostartStart.cpp \
    27         VBoxAutostartStop.cpp
     35        VBoxAutostartStop.cpp \
     36        VBoxAutostartUtils.cpp \
     37        VBoxAutostart-posix.cpp
     38endif
    2839
    2940include $(FILE_KBUILD_SUB_FOOTER)
  • trunk/src/VBox/Frontends/VBoxAutostart/VBoxAutostart-posix.cpp

    r43887 r43909  
    243243}
    244244
    245 DECLHIDDEN(const char *) machineStateToName(MachineState_T machineState, bool fShort)
    246 {
    247     switch (machineState)
    248     {
    249         case MachineState_PoweredOff:
    250             return fShort ? "poweroff"             : "powered off";
    251         case MachineState_Saved:
    252             return "saved";
    253         case MachineState_Aborted:
    254             return "aborted";
    255         case MachineState_Teleported:
    256             return "teleported";
    257         case MachineState_Running:
    258             return "running";
    259         case MachineState_Paused:
    260             return "paused";
    261         case MachineState_Stuck:
    262             return fShort ? "gurumeditation"       : "guru meditation";
    263         case MachineState_LiveSnapshotting:
    264             return fShort ? "livesnapshotting"     : "live snapshotting";
    265         case MachineState_Teleporting:
    266             return "teleporting";
    267         case MachineState_Starting:
    268             return "starting";
    269         case MachineState_Stopping:
    270             return "stopping";
    271         case MachineState_Saving:
    272             return "saving";
    273         case MachineState_Restoring:
    274             return "restoring";
    275         case MachineState_TeleportingPausedVM:
    276             return fShort ? "teleportingpausedvm"  : "teleporting paused vm";
    277         case MachineState_TeleportingIn:
    278             return fShort ? "teleportingin"        : "teleporting (incoming)";
    279         case MachineState_RestoringSnapshot:
    280             return fShort ? "restoringsnapshot"    : "restoring snapshot";
    281         case MachineState_DeletingSnapshot:
    282             return fShort ? "deletingsnapshot"     : "deleting snapshot";
    283         case MachineState_DeletingSnapshotOnline:
    284             return fShort ? "deletingsnapshotlive" : "deleting snapshot live";
    285         case MachineState_DeletingSnapshotPaused:
    286             return fShort ? "deletingsnapshotlivepaused" : "deleting snapshot live paused";
    287         case MachineState_SettingUp:
    288             return fShort ? "settingup"           : "setting up";
    289         default:
    290             break;
    291     }
    292     return "unknown";
    293 }
    294 
    295245DECLHIDDEN(void) serviceLog(const char *pszFormat, ...)
    296246{
  • trunk/src/VBox/Frontends/VBoxAutostart/VBoxAutostartStop.cpp

    r43656 r43909  
    196196                        case AutostopType_AcpiShutdown:
    197197                        {
    198                             /** @todo: Wait for VM to change to powered off state. */
    199198                            BOOL fGuestEnteredACPI = false;
    200199                            CHECK_ERROR_BREAK(console, GetGuestEnteredACPIMode(&fGuestEnteredACPI));
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