1 /*
2  * libvirt-gconfig-domain-capabilities-os.h: libvirt domain capabilities OS
3  *
4  * Copyright (C) 2019 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 
21 #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD)
22 #error "Only <libvirt-gconfig/libvirt-gconfig.h> can be included directly."
23 #endif
24 
25 #ifndef __LIBVIRT_GCONFIG_DOMAIN_CAPABILITIES_OS_H__
26 #define __LIBVIRT_GCONFIG_DOMAIN_CAPABILITIES_OS_H__
27 
28 G_BEGIN_DECLS
29 
30 #define GVIR_CONFIG_TYPE_DOMAIN_CAPABILITIES_OS            (gvir_config_domain_capabilities_os_get_type ())
31 #define GVIR_CONFIG_DOMAIN_CAPABILITIES_OS(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_CAPABILITIES_OS, GVirConfigDomainCapabilitiesOs))
32 #define GVIR_CONFIG_DOMAIN_CAPABILITIES_OS_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_CAPABILITIES_OS, GVirConfigDomainCapabilitiesOsClass))
33 #define GVIR_CONFIG_IS_DOMAIN_CAPABILITIES_OS(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_CAPABILITIES_OS))
34 #define GVIR_CONFIG_IS_DOMAIN_CAPABILITIES_OS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_CAPABILITIES_OS))
35 #define GVIR_CONFIG_DOMAIN_CAPABILITIES_OS_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_CAPABILITIES_OS, GVirConfigDomainCapabilitiesOsClass))
36 
37 typedef struct _GVirConfigDomainCapabilitiesOs GVirConfigDomainCapabilitiesOs;
38 typedef struct _GVirConfigDomainCapabilitiesOsPrivate GVirConfigDomainCapabilitiesOsPrivate;
39 typedef struct _GVirConfigDomainCapabilitiesOsClass GVirConfigDomainCapabilitiesOsClass;
40 
41 struct _GVirConfigDomainCapabilitiesOs
42 {
43     GVirConfigObject parent;
44 
45     GVirConfigDomainCapabilitiesOsPrivate *priv;
46 
47     /* Do not add fields to this struct */
48 };
49 
50 struct _GVirConfigDomainCapabilitiesOsClass
51 {
52     GVirConfigObjectClass parent_class;
53 
54     GList *(*get_firmwares)(GVirConfigDomainCapabilitiesOs *os);
55 
56     gpointer padding[19];
57 };
58 
59 GType gvir_config_domain_capabilities_os_get_type(void);
60 
61 GList *
62 gvir_config_domain_capabilities_os_get_firmwares(GVirConfigDomainCapabilitiesOs *os);
63 
64 G_END_DECLS
65 
66 #endif /* __LIBVIRT_GCONFIG_DOMAIN_CAPABILITIES_OS_H__ */
67