Debian Codegraph @

govirt/ovirt-vm-private.h

raw symbols SCIP
1
2 /*
3 * ovirt-vm-private.h: oVirt virtual machine private header
4 *
5 * Copyright (C) 2012 Red Hat, Inc.
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library. If not, see
19 * <http://www.gnu.org/licenses/>.
20 *
21 * Author: Christophe Fergeau <[email protected]>
22 */
23 #ifndef __OVIRT_VM_PRIVATE_H__
24 #define __OVIRT_VM_PRIVATE_H__
25
26 #include <govirt/ovirt-vm.h>
27 #include <rest/rest-xml-node.h>
28
29 G_BEGIN_DECLS
30
31 typedef enum {
32 OVIRT_VM_ACTION_SHUTDOWN,
33 OVIRT_VM_ACTION_START,
34 OVIRT_VM_ACTION_STOP,
35 OVIRT_VM_ACTION_SUSPEND,
36 OVIRT_VM_ACTION_DETACH,
37 OVIRT_VM_ACTION_EXPORT,
38 OVIRT_VM_ACTION_MOVE,
39 OVIRT_VM_ACTION_TICKET,
40 OVIRT_VM_ACTION_MIGRATE
41 } OvirtVmAction;
42
43 gboolean ovirt_vm_refresh_from_xml(OvirtVm *vm, RestXmlNode *node);
44 OvirtVm *ovirt_vm_new_from_xml(RestXmlNode *node, GError **error);
45
46 G_END_DECLS
47
48 #endif /* __OVIRT_VM_PRIVATE_H__ */