Debian Codegraph @

govirt/ovirt-vm-display.h

raw symbols SCIP
1 /*
2 * ovirt-vm-display.h: oVirt virtual machine display information
3 *
4 * Copyright (C) 2012 Red Hat, Inc.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library. If not, see
18 * <http://www.gnu.org/licenses/>.
19 *
20 * Author: Christophe Fergeau <[email protected]>
21 */
22 #ifndef __OVIRT_VM_DISPLAY_H__
23 #define __OVIRT_VM_DISPLAY_H__
24
25 #include <glib-object.h>
26 #include <govirt/ovirt-types.h>
27 #include <rest/rest-xml-node.h>
28
29 G_BEGIN_DECLS
30
31 #define OVIRT_TYPE_VM_DISPLAY (ovirt_vm_display_get_type ())
32 #define OVIRT_VM_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), OVIRT_TYPE_VM_DISPLAY, OvirtVmDisplay))
33 #define OVIRT_VM_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), OVIRT_TYPE_VM_DISPLAY, OvirtVmDisplayClass))
34 #define OVIRT_IS_VM_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), OVIRT_TYPE_VM_DISPLAY))
35 #define OVIRT_IS_VM_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), OVIRT_TYPE_VM_DISPLAY))
36 #define OVIRT_VM_DISPLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), OVIRT_TYPE_VM_DISPLAY, OvirtVmDisplayClass))
37
38 typedef struct _OvirtVmDisplayPrivate OvirtVmDisplayPrivate;
39 typedef struct _OvirtVmDisplayClass OvirtVmDisplayClass;
40
41 struct _OvirtVmDisplay
42 {
43 GObject parent;
44
45 OvirtVmDisplayPrivate *priv;
46
47 /* Do not add fields to this struct */
48 };
49
50 struct _OvirtVmDisplayClass
51 {
52 GObjectClass parent_class;
53
54 gpointer padding[20];
55 };
56
57 typedef enum {
58 OVIRT_VM_DISPLAY_SPICE,
59 OVIRT_VM_DISPLAY_VNC,
60 OVIRT_VM_DISPLAY_INVALID,
61 } OvirtVmDisplayType;
62
63 GType ovirt_vm_display_get_type(void);
64 OvirtVmDisplay *ovirt_vm_display_new(void);
65 OvirtVmDisplay *ovirt_vm_display_new_from_xml(RestXmlNode *node);
66
67 G_END_DECLS
68
69 #endif /* __OVIRT_VM_DISPLAY_H__ */