|
Packit |
a07778 |
/*
|
|
Packit |
a07778 |
* libvirt-gobject-domain-device.h: libvirt gobject integration
|
|
Packit |
a07778 |
*
|
|
Packit |
a07778 |
* Copyright (C) 2011 Red Hat, Inc.
|
|
Packit |
a07778 |
*
|
|
Packit |
a07778 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
a07778 |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit |
a07778 |
* License as published by the Free Software Foundation; either
|
|
Packit |
a07778 |
* version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
a07778 |
*
|
|
Packit |
a07778 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
a07778 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
a07778 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
a07778 |
* Lesser General Public License for more details.
|
|
Packit |
a07778 |
*
|
|
Packit |
a07778 |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
a07778 |
* License along with this library. If not, see
|
|
Packit |
a07778 |
* <http://www.gnu.org/licenses/>.
|
|
Packit |
a07778 |
*
|
|
Packit |
a07778 |
* Author: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
Packit |
a07778 |
*/
|
|
Packit |
a07778 |
|
|
Packit |
a07778 |
#if !defined(__LIBVIRT_GOBJECT_H__) && !defined(LIBVIRT_GOBJECT_BUILD)
|
|
Packit |
a07778 |
#error "Only <libvirt-gobject/libvirt-gobject.h> can be included directly."
|
|
Packit |
a07778 |
#endif
|
|
Packit |
a07778 |
|
|
Packit |
a07778 |
#ifndef __LIBVIRT_GOBJECT_DOMAIN_DEVICE_H__
|
|
Packit |
a07778 |
#define __LIBVIRT_GOBJECT_DOMAIN_DEVICE_H__
|
|
Packit |
a07778 |
|
|
Packit |
a07778 |
#include <libvirt-gobject/libvirt-gobject-domain.h>
|
|
Packit |
a07778 |
|
|
Packit |
a07778 |
G_BEGIN_DECLS
|
|
Packit |
a07778 |
|
|
Packit |
a07778 |
#define GVIR_TYPE_DOMAIN_DEVICE (gvir_domain_device_get_type ())
|
|
Packit |
a07778 |
#define GVIR_DOMAIN_DEVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_TYPE_DOMAIN_DEVICE, GVirDomainDevice))
|
|
Packit |
a07778 |
#define GVIR_DOMAIN_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_TYPE_DOMAIN_DEVICE, GVirDomainDeviceClass))
|
|
Packit |
a07778 |
#define GVIR_IS_DOMAIN_DEVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_TYPE_DOMAIN_DEVICE))
|
|
Packit |
a07778 |
#define GVIR_IS_DOMAIN_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_TYPE_DOMAIN_DEVICE))
|
|
Packit |
a07778 |
#define GVIR_DOMAIN_DEVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_TYPE_DOMAIN_DEVICE, GVirDomainDeviceClass))
|
|
Packit |
a07778 |
|
|
Packit |
a07778 |
typedef struct _GVirDomainDevice GVirDomainDevice;
|
|
Packit |
a07778 |
typedef struct _GVirDomainDevicePrivate GVirDomainDevicePrivate;
|
|
Packit |
a07778 |
typedef struct _GVirDomainDeviceClass GVirDomainDeviceClass;
|
|
Packit |
a07778 |
|
|
Packit |
a07778 |
struct _GVirDomainDevice
|
|
Packit |
a07778 |
{
|
|
Packit |
a07778 |
GObject parent;
|
|
Packit |
a07778 |
|
|
Packit |
a07778 |
GVirDomainDevicePrivate *priv;
|
|
Packit |
a07778 |
|
|
Packit |
a07778 |
/* Do not add fields to this struct */
|
|
Packit |
a07778 |
};
|
|
Packit |
a07778 |
|
|
Packit |
a07778 |
struct _GVirDomainDeviceClass
|
|
Packit |
a07778 |
{
|
|
Packit |
a07778 |
GObjectClass parent_class;
|
|
Packit |
a07778 |
|
|
Packit |
a07778 |
gpointer padding[20];
|
|
Packit |
a07778 |
};
|
|
Packit |
a07778 |
|
|
Packit |
a07778 |
|
|
Packit |
a07778 |
GType gvir_domain_device_get_type(void);
|
|
Packit |
a07778 |
GVirDomain *gvir_domain_device_get_domain(GVirDomainDevice *device);
|
|
Packit |
a07778 |
GVirConfigDomainDevice *gvir_domain_device_get_config(GVirDomainDevice *device);
|
|
Packit |
a07778 |
|
|
Packit |
a07778 |
G_END_DECLS
|
|
Packit |
a07778 |
|
|
Packit |
a07778 |
#endif /* __LIBVIRT_GOBJECT_DOMAIN_DEVICE_H__ */
|