Revision 675d9367 include/DispatchManager.h

View differences:

include/DispatchManager.h
46 46
    {
47 47
        SUSPEND_SUCCESS,/**< Send by LCM when a VM is suspended*/
48 48
        STOP_SUCCESS,   /**< Send by LCM when a VM is stopped*/
49
        SHUTDOWN_SAVE_SUCCESS,  /**< Send by LCM when a VM is shut down and saved*/
49 50
        POWEROFF_SUCCESS, /**< Send by LCM when a VM is powered off */
50 51
        DONE,           /**< Send by LCM when a VM is shut down*/
51 52
        FAILED,         /**< Send by LCM when one of the execution steps fails*/
......
131 132
        int vid);
132 133

  
133 134
    /**
135
     *  Shuts down a VM, but it is saved in the system DS instead of destroyed.
136
     *    @param vid VirtualMachine identification
137
     *    @param hard True to force the shutdown (cancel instead of shutdown)
138
     *    @return 0 on success, -1 if the VM does not exits or -2 if the VM is
139
     *    in a wrong a state
140
     */
141
    int shutdown_save(
142
        int vid,
143
        bool hard);
144

  
145
    /**
134 146
     *  Powers off a VM.
135 147
     *    @param vid VirtualMachine identification
136 148
     *    @return 0 on success, -1 if the VM does not exits or -2 if the VM is
......
396 408

  
397 409
    void  stop_success_action(int vid);
398 410

  
411
    void  shutdown_save_success_action(int vid);
412

  
399 413
    void  poweroff_success_action(int vid);
400 414

  
401 415
    void  done_action(int vid);

Also available in: Unified diff