mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-02 11:21:12 +00:00
4ecb723b9e
https://www.gnu.org/licenses/gpl-howto.html recommends that the 'If not, see <url>.' phrase be a separate sentence. * tests/securityselinuxhelper.c: Remove doubled line. * tests/securityselinuxtest.c: Likewise. * globally: s/; If/. If/
95 lines
3.3 KiB
C
95 lines
3.3 KiB
C
|
|
/*
|
|
* hyperv_wmi_classes.h: WMI classes for managing Microsoft Hyper-V hosts
|
|
*
|
|
* Copyright (C) 2011 Matthias Bolte <matthias.bolte@googlemail.com>
|
|
* Copyright (C) 2009 Michael Sievers <msievers83@googlemail.com>
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library. If not, see
|
|
* <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
#ifndef __HYPERV_WMI_CLASSES_H__
|
|
# define __HYPERV_WMI_CLASSES_H__
|
|
|
|
# include "openwsman.h"
|
|
|
|
# include "hyperv_wmi_classes.generated.typedef"
|
|
|
|
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
* Msvm_ComputerSystem
|
|
*/
|
|
|
|
# define MSVM_COMPUTERSYSTEM_WQL_VIRTUAL \
|
|
"Description = \"Microsoft Virtual Machine\" "
|
|
|
|
# define MSVM_COMPUTERSYSTEM_WQL_PHYSICAL \
|
|
"Description = \"Microsoft Hosting Computer System\" "
|
|
|
|
# define MSVM_COMPUTERSYSTEM_WQL_ACTIVE \
|
|
"(EnabledState != 0 and EnabledState != 3 and EnabledState != 32769) "
|
|
|
|
# define MSVM_COMPUTERSYSTEM_WQL_INACTIVE \
|
|
"(EnabledState = 0 or EnabledState = 3 or EnabledState = 32769) "
|
|
|
|
enum _Msvm_ComputerSystem_EnabledState {
|
|
MSVM_COMPUTERSYSTEM_ENABLEDSTATE_UNKNOWN = 0, /* inactive */
|
|
MSVM_COMPUTERSYSTEM_ENABLEDSTATE_ENABLED = 2, /* active */
|
|
MSVM_COMPUTERSYSTEM_ENABLEDSTATE_DISABLED = 3, /* inactive */
|
|
MSVM_COMPUTERSYSTEM_ENABLEDSTATE_PAUSED = 32768, /* active */
|
|
MSVM_COMPUTERSYSTEM_ENABLEDSTATE_SUSPENDED = 32769, /* inactive */
|
|
MSVM_COMPUTERSYSTEM_ENABLEDSTATE_STARTING = 32770, /* active */
|
|
MSVM_COMPUTERSYSTEM_ENABLEDSTATE_SNAPSHOTTING = 32771, /* active */
|
|
MSVM_COMPUTERSYSTEM_ENABLEDSTATE_SAVING = 32773, /* active */
|
|
MSVM_COMPUTERSYSTEM_ENABLEDSTATE_STOPPING = 32774, /* active */
|
|
MSVM_COMPUTERSYSTEM_ENABLEDSTATE_PAUSING = 32776, /* active */
|
|
MSVM_COMPUTERSYSTEM_ENABLEDSTATE_RESUMING = 32777 /* active */
|
|
};
|
|
|
|
enum _Msvm_ComputerSystem_RequestedState {
|
|
MSVM_COMPUTERSYSTEM_REQUESTEDSTATE_ENABLED = 2,
|
|
MSVM_COMPUTERSYSTEM_REQUESTEDSTATE_DISABLED = 3,
|
|
MSVM_COMPUTERSYSTEM_REQUESTEDSTATE_REBOOT = 10,
|
|
MSVM_COMPUTERSYSTEM_REQUESTEDSTATE_PAUSED = 32768,
|
|
MSVM_COMPUTERSYSTEM_REQUESTEDSTATE_SUSPENDED = 32769,
|
|
};
|
|
|
|
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
* Msvm_ConcreteJob
|
|
*/
|
|
|
|
enum _Msvm_ConcreteJob_JobState {
|
|
MSVM_CONCRETEJOB_JOBSTATE_NEW = 2,
|
|
MSVM_CONCRETEJOB_JOBSTATE_STARTING = 3,
|
|
MSVM_CONCRETEJOB_JOBSTATE_RUNNING = 4,
|
|
MSVM_CONCRETEJOB_JOBSTATE_SUSPENDED = 5,
|
|
MSVM_CONCRETEJOB_JOBSTATE_SHUTTING_DOWN = 6,
|
|
MSVM_CONCRETEJOB_JOBSTATE_COMPLETED = 7,
|
|
MSVM_CONCRETEJOB_JOBSTATE_TERMINATED = 8,
|
|
MSVM_CONCRETEJOB_JOBSTATE_KILLED = 9,
|
|
MSVM_CONCRETEJOB_JOBSTATE_EXCEPTION = 10,
|
|
MSVM_CONCRETEJOB_JOBSTATE_SERVICE = 11,
|
|
};
|
|
|
|
|
|
|
|
# include "hyperv_wmi_classes.generated.h"
|
|
|
|
#endif /* __HYPERV_WMI_CLASSES_H__ */
|