[libvirt-glib 32/37] Add gobject boilerplate for chardev handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 libvirt-gconfig/Makefile.am                      |    6 ++
 libvirt-gconfig/libvirt-gconfig-chardev-source.c |   62 ++++++++++++++++
 libvirt-gconfig/libvirt-gconfig-chardev-source.h |   64 +++++++++++++++++
 libvirt-gconfig/libvirt-gconfig-chardev-target.c |   62 ++++++++++++++++
 libvirt-gconfig/libvirt-gconfig-chardev-target.h |   64 +++++++++++++++++
 libvirt-gconfig/libvirt-gconfig-device-chardev.c |   82 ++++++++++++++++++++++
 libvirt-gconfig/libvirt-gconfig-device-chardev.h |   71 +++++++++++++++++++
 libvirt-gconfig/libvirt-gconfig.h                |    3 +
 libvirt-gconfig/libvirt-gconfig.sym              |   10 +++
 9 files changed, 424 insertions(+), 0 deletions(-)
 create mode 100644 libvirt-gconfig/libvirt-gconfig-chardev-source.c
 create mode 100644 libvirt-gconfig/libvirt-gconfig-chardev-source.h
 create mode 100644 libvirt-gconfig/libvirt-gconfig-chardev-target.c
 create mode 100644 libvirt-gconfig/libvirt-gconfig-chardev-target.h
 create mode 100644 libvirt-gconfig/libvirt-gconfig-device-chardev.c
 create mode 100644 libvirt-gconfig/libvirt-gconfig-device-chardev.h

diff --git a/libvirt-gconfig/Makefile.am b/libvirt-gconfig/Makefile.am
index 71fe027..3144955 100644
--- a/libvirt-gconfig/Makefile.am
+++ b/libvirt-gconfig/Makefile.am
@@ -11,8 +11,11 @@ GCONFIG_HEADER_FILES = \
 			libvirt-gconfig.h \
 			libvirt-gconfig-object.h \
 			libvirt-gconfig-capabilities.h \
+			libvirt-gconfig-chardev-source.h \
+			libvirt-gconfig-chardev-target.h \
 			libvirt-gconfig-clock.h \
 			libvirt-gconfig-device.h \
+			libvirt-gconfig-device-chardev.h \
 			libvirt-gconfig-device-disk.h \
 			libvirt-gconfig-device-input.h \
 			libvirt-gconfig-device-video.h \
@@ -35,8 +38,11 @@ noinst_HEADERS = \
 GCONFIG_SOURCE_FILES = \
 			libvirt-gconfig-object.c \
 			libvirt-gconfig-capabilities.c \
+			libvirt-gconfig-chardev-source.c \
+			libvirt-gconfig-chardev-target.c \
 			libvirt-gconfig-clock.c \
 			libvirt-gconfig-device.c \
+			libvirt-gconfig-device-chardev.c \
 			libvirt-gconfig-device-disk.c \
 			libvirt-gconfig-device-input.c \
 			libvirt-gconfig-device-video.c \
diff --git a/libvirt-gconfig/libvirt-gconfig-chardev-source.c b/libvirt-gconfig/libvirt-gconfig-chardev-source.c
new file mode 100644
index 0000000..82eff4f
--- /dev/null
+++ b/libvirt-gconfig/libvirt-gconfig-chardev-source.c
@@ -0,0 +1,62 @@
+/*
+ * libvirt-gobject-config-chardev-source.c: libvirt glib integration
+ *
+ * Copyright (C) 2011 Red Hat
+ *
+ * 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, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
+ *
+ * Author: Christophe Fergeau <cfergeau@xxxxxxxxx>
+ */
+
+#include <config.h>
+
+#include <string.h>
+
+#include <libxml/tree.h>
+
+#include "libvirt-gconfig/libvirt-gconfig.h"
+
+extern gboolean debugFlag;
+
+#define DEBUG(fmt, ...) do { if (G_UNLIKELY(debugFlag)) g_debug(fmt, ## __VA_ARGS__); } while (0)
+
+#define GVIR_CONFIG_CHARDEV_SOURCE_GET_PRIVATE(obj)                         \
+        (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_TYPE_CONFIG_CHARDEV_SOURCE, GVirConfigChardevSourcePrivate))
+
+struct _GVirConfigChardevSourcePrivate
+{
+    gboolean unused;
+};
+
+G_DEFINE_ABSTRACT_TYPE(GVirConfigChardevSource, gvir_config_chardev_source, GVIR_TYPE_CONFIG_OBJECT);
+
+
+static void gvir_config_chardev_source_class_init(GVirConfigChardevSourceClass *klass)
+{
+
+    g_type_class_add_private(klass, sizeof(GVirConfigChardevSourcePrivate));
+}
+
+
+static void gvir_config_chardev_source_init(GVirConfigChardevSource *chardev_source)
+{
+    GVirConfigChardevSourcePrivate *priv;
+
+    DEBUG("Init GVirConfigChardevSource=%p", chardev_source);
+
+    priv = chardev_source->priv = GVIR_CONFIG_CHARDEV_SOURCE_GET_PRIVATE(chardev_source);
+
+    memset(priv, 0, sizeof(*priv));
+}
diff --git a/libvirt-gconfig/libvirt-gconfig-chardev-source.h b/libvirt-gconfig/libvirt-gconfig-chardev-source.h
new file mode 100644
index 0000000..5a4c8fe
--- /dev/null
+++ b/libvirt-gconfig/libvirt-gconfig-chardev-source.h
@@ -0,0 +1,64 @@
+/*
+ * libvirt-gobject-chardev-source.c: libvirt gobject integration
+ *
+ * Copyright (C) 2011 Red Hat
+ *
+ * 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, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
+ *
+ * Author: Christophe Fergeau <cfergeau@xxxxxxxxx>
+ */
+
+#if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD)
+#error "Only <libvirt-gconfig/libvirt-gconfig.h> can be included directly."
+#endif
+
+#ifndef __LIBVIRT_GCONFIG_CHARDEV_SOURCE_H__
+#define __LIBVIRT_GCONFIG_CHARDEV_SOURCE_H__
+
+G_BEGIN_DECLS
+
+#define GVIR_TYPE_CONFIG_CHARDEV_SOURCE            (gvir_config_chardev_source_get_type ())
+#define GVIR_CONFIG_CHARDEV_SOURCE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_TYPE_CONFIG_CHARDEV_SOURCE, GVirConfigChardevSource))
+#define GVIR_CONFIG_CHARDEV_SOURCE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_TYPE_CONFIG_CHARDEV_SOURCE, GVirConfigChardevSourceClass))
+#define GVIR_IS_CONFIG_CHARDEV_SOURCE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_TYPE_CONFIG_CHARDEV_SOURCE))
+#define GVIR_IS_CONFIG_CHARDEV_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_TYPE_CONFIG_CHARDEV_SOURCE))
+#define GVIR_CONFIG_CHARDEV_SOURCE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_TYPE_CONFIG_CHARDEV_SOURCE, GVirConfigChardevSourceClass))
+
+typedef struct _GVirConfigChardevSource GVirConfigChardevSource;
+typedef struct _GVirConfigChardevSourcePrivate GVirConfigChardevSourcePrivate;
+typedef struct _GVirConfigChardevSourceClass GVirConfigChardevSourceClass;
+
+struct _GVirConfigChardevSource
+{
+    GVirConfigObject parent;
+
+    GVirConfigChardevSourcePrivate *priv;
+
+    /* Do not add fields to this struct */
+};
+
+struct _GVirConfigChardevSourceClass
+{
+    GVirConfigObjectClass parent_class;
+
+    gpointer padding[20];
+};
+
+
+GType gvir_config_chardev_source_get_type(void);
+
+G_END_DECLS
+
+#endif /* __LIBVIRT_GCONFIG_CHARDEV_SOURCE_H__ */
diff --git a/libvirt-gconfig/libvirt-gconfig-chardev-target.c b/libvirt-gconfig/libvirt-gconfig-chardev-target.c
new file mode 100644
index 0000000..a9e5a20
--- /dev/null
+++ b/libvirt-gconfig/libvirt-gconfig-chardev-target.c
@@ -0,0 +1,62 @@
+/*
+ * libvirt-gobject-config-chardev-target.c: libvirt glib integration
+ *
+ * Copyright (C) 2011 Red Hat
+ *
+ * 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, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
+ *
+ * Author: Christophe Fergeau <cfergeau@xxxxxxxxx>
+ */
+
+#include <config.h>
+
+#include <string.h>
+
+#include <libxml/tree.h>
+
+#include "libvirt-gconfig/libvirt-gconfig.h"
+
+extern gboolean debugFlag;
+
+#define DEBUG(fmt, ...) do { if (G_UNLIKELY(debugFlag)) g_debug(fmt, ## __VA_ARGS__); } while (0)
+
+#define GVIR_CONFIG_CHARDEV_TARGET_GET_PRIVATE(obj)                         \
+        (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_TYPE_CONFIG_CHARDEV_TARGET, GVirConfigChardevTargetPrivate))
+
+struct _GVirConfigChardevTargetPrivate
+{
+    gboolean unused;
+};
+
+G_DEFINE_ABSTRACT_TYPE(GVirConfigChardevTarget, gvir_config_chardev_target, GVIR_TYPE_CONFIG_OBJECT);
+
+
+static void gvir_config_chardev_target_class_init(GVirConfigChardevTargetClass *klass)
+{
+
+    g_type_class_add_private(klass, sizeof(GVirConfigChardevTargetPrivate));
+}
+
+
+static void gvir_config_chardev_target_init(GVirConfigChardevTarget *chardev_target)
+{
+    GVirConfigChardevTargetPrivate *priv;
+
+    DEBUG("Init GVirConfigChardevTarget=%p", chardev_target);
+
+    priv = chardev_target->priv = GVIR_CONFIG_CHARDEV_TARGET_GET_PRIVATE(chardev_target);
+
+    memset(priv, 0, sizeof(*priv));
+}
diff --git a/libvirt-gconfig/libvirt-gconfig-chardev-target.h b/libvirt-gconfig/libvirt-gconfig-chardev-target.h
new file mode 100644
index 0000000..41fd875
--- /dev/null
+++ b/libvirt-gconfig/libvirt-gconfig-chardev-target.h
@@ -0,0 +1,64 @@
+/*
+ * libvirt-gobject-chardev-target.c: libvirt gobject integration
+ *
+ * Copyright (C) 2011 Red Hat
+ *
+ * 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, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
+ *
+ * Author: Christophe Fergeau <cfergeau@xxxxxxxxx>
+ */
+
+#if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD)
+#error "Only <libvirt-gconfig/libvirt-gconfig.h> can be included directly."
+#endif
+
+#ifndef __LIBVIRT_GCONFIG_CHARDEV_TARGET_H__
+#define __LIBVIRT_GCONFIG_CHARDEV_TARGET_H__
+
+G_BEGIN_DECLS
+
+#define GVIR_TYPE_CONFIG_CHARDEV_TARGET            (gvir_config_chardev_target_get_type ())
+#define GVIR_CONFIG_CHARDEV_TARGET(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_TYPE_CONFIG_CHARDEV_TARGET, GVirConfigChardevTarget))
+#define GVIR_CONFIG_CHARDEV_TARGET_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_TYPE_CONFIG_CHARDEV_TARGET, GVirConfigChardevTargetClass))
+#define GVIR_IS_CONFIG_CHARDEV_TARGET(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_TYPE_CONFIG_CHARDEV_TARGET))
+#define GVIR_IS_CONFIG_CHARDEV_TARGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_TYPE_CONFIG_CHARDEV_TARGET))
+#define GVIR_CONFIG_CHARDEV_TARGET_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_TYPE_CONFIG_CHARDEV_TARGET, GVirConfigChardevTargetClass))
+
+typedef struct _GVirConfigChardevTarget GVirConfigChardevTarget;
+typedef struct _GVirConfigChardevTargetPrivate GVirConfigChardevTargetPrivate;
+typedef struct _GVirConfigChardevTargetClass GVirConfigChardevTargetClass;
+
+struct _GVirConfigChardevTarget
+{
+    GVirConfigObject parent;
+
+    GVirConfigChardevTargetPrivate *priv;
+
+    /* Do not add fields to this struct */
+};
+
+struct _GVirConfigChardevTargetClass
+{
+    GVirConfigObjectClass parent_class;
+
+    gpointer padding[20];
+};
+
+
+GType gvir_config_chardev_target_get_type(void);
+
+G_END_DECLS
+
+#endif /* __LIBVIRT_GCONFIG_CHARDEV_TARGET_H__ */
diff --git a/libvirt-gconfig/libvirt-gconfig-device-chardev.c b/libvirt-gconfig/libvirt-gconfig-device-chardev.c
new file mode 100644
index 0000000..d4ec23f
--- /dev/null
+++ b/libvirt-gconfig/libvirt-gconfig-device-chardev.c
@@ -0,0 +1,82 @@
+/*
+ * libvirt-gobject-config-device-chardev.c: libvirt glib integration
+ *
+ * Copyright (C) 2011 Red Hat
+ *
+ * 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, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
+ *
+ * Author: Christophe Fergeau <cfergeau@xxxxxxxxx>
+ */
+
+#include <config.h>
+
+#include <string.h>
+
+#include <libxml/tree.h>
+
+#include "libvirt-gconfig/libvirt-gconfig.h"
+
+extern gboolean debugFlag;
+
+#define DEBUG(fmt, ...) do { if (G_UNLIKELY(debugFlag)) g_debug(fmt, ## __VA_ARGS__); } while (0)
+
+#define GVIR_CONFIG_DEVICE_CHARDEV_GET_PRIVATE(obj)                         \
+        (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_TYPE_CONFIG_DEVICE_CHARDEV, GVirConfigDeviceChardevPrivate))
+
+struct _GVirConfigDeviceChardevPrivate
+{
+    gboolean unused;
+};
+
+G_DEFINE_TYPE(GVirConfigDeviceChardev, gvir_config_device_chardev, GVIR_TYPE_CONFIG_DEVICE);
+
+
+static void gvir_config_device_chardev_class_init(GVirConfigDeviceChardevClass *klass)
+{
+
+    g_type_class_add_private(klass, sizeof(GVirConfigDeviceChardevPrivate));
+}
+
+
+static void gvir_config_device_chardev_init(GVirConfigDeviceChardev *chardev)
+{
+    GVirConfigDeviceChardevPrivate *priv;
+
+    DEBUG("Init GVirConfigDeviceChardev=%p", chardev);
+
+    priv = chardev->priv = GVIR_CONFIG_DEVICE_CHARDEV_GET_PRIVATE(chardev);
+
+    memset(priv, 0, sizeof(*priv));
+}
+
+
+GVirConfigDeviceChardev *gvir_config_device_chardev_new(void)
+{
+    GVirConfigObject *object;
+
+    object = gvir_config_object_new(GVIR_TYPE_CONFIG_DEVICE_CHARDEV,
+                                    "", NULL);
+    return GVIR_CONFIG_DEVICE_CHARDEV(object);
+}
+
+GVirConfigDeviceChardev *gvir_config_device_chardev_new_from_xml(const gchar *xml,
+                                                                 GError **error)
+{
+    GVirConfigObject *object;
+
+    object = gvir_config_object_new_from_xml(GVIR_TYPE_CONFIG_DEVICE_CHARDEV,
+                                             "", NULL, xml, error);
+    return GVIR_CONFIG_DEVICE_CHARDEV(object);
+}
diff --git a/libvirt-gconfig/libvirt-gconfig-device-chardev.h b/libvirt-gconfig/libvirt-gconfig-device-chardev.h
new file mode 100644
index 0000000..ff806e7
--- /dev/null
+++ b/libvirt-gconfig/libvirt-gconfig-device-chardev.h
@@ -0,0 +1,71 @@
+/*
+ * libvirt-gobject-device-chardev.c: libvirt gobject integration
+ *
+ * Copyright (C) 2011 Red Hat
+ *
+ * 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, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
+ *
+ * Author: Christophe Fergeau <cfergeau@xxxxxxxxx>
+ */
+
+#if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD)
+#error "Only <libvirt-gconfig/libvirt-gconfig.h> can be included directly."
+#endif
+
+#ifndef __LIBVIRT_GCONFIG_DEVICE_CHARDEV_H__
+#define __LIBVIRT_GCONFIG_DEVICE_CHARDEV_H__
+
+G_BEGIN_DECLS
+
+#define GVIR_TYPE_CONFIG_DEVICE_CHARDEV            (gvir_config_device_chardev_get_type ())
+#define GVIR_CONFIG_DEVICE_CHARDEV(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_TYPE_CONFIG_DEVICE_CHARDEV, GVirConfigDeviceChardev))
+#define GVIR_CONFIG_DEVICE_CHARDEV_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_TYPE_CONFIG_DEVICE_CHARDEV, GVirConfigDeviceChardevClass))
+#define GVIR_IS_CONFIG_DEVICE_CHARDEV(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_TYPE_CONFIG_DEVICE_CHARDEV))
+#define GVIR_IS_CONFIG_DEVICE_CHARDEV_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_TYPE_CONFIG_DEVICE_CHARDEV))
+#define GVIR_CONFIG_DEVICE_CHARDEV_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_TYPE_CONFIG_DEVICE_CHARDEV, GVirConfigDeviceChardevClass))
+
+typedef struct _GVirConfigDeviceChardev GVirConfigDeviceChardev;
+typedef struct _GVirConfigDeviceChardevPrivate GVirConfigDeviceChardevPrivate;
+typedef struct _GVirConfigDeviceChardevClass GVirConfigDeviceChardevClass;
+
+struct _GVirConfigDeviceChardev
+{
+    GVirConfigObject parent;
+
+    GVirConfigDeviceChardevPrivate *priv;
+
+    /* Do not add fields to this struct */
+};
+
+struct _GVirConfigDeviceChardevClass
+{
+    GVirConfigObjectClass parent_class;
+
+    gpointer padding[20];
+};
+
+GType gvir_config_device_chardev_get_type(void);
+
+GVirConfigDeviceChardev *gvir_config_device_chardev_new(void);
+GVirConfigDeviceChardev *gvir_config_device_chardev_new_from_xml(const gchar *xml,
+                                                                 GError **error);
+void gvir_config_device_chardev_set_source(GVirConfigDeviceChardev *chardev,
+                                           GVirConfigChardevSource *source);
+void gvir_config_device_chardev_set_target(GVirConfigDeviceChardev *chardev,
+                                           GVirConfigChardevTarget *target);
+
+G_END_DECLS
+
+#endif /* __LIBVIRT_GCONFIG_DEVICE_CHARDEV_H__ */
diff --git a/libvirt-gconfig/libvirt-gconfig.h b/libvirt-gconfig/libvirt-gconfig.h
index 01c59d0..28e09b9 100644
--- a/libvirt-gconfig/libvirt-gconfig.h
+++ b/libvirt-gconfig/libvirt-gconfig.h
@@ -29,7 +29,10 @@
 #include <libvirt-gconfig/libvirt-gconfig-object.h>
 #include <libvirt-gconfig/libvirt-gconfig-capabilities.h>
 #include <libvirt-gconfig/libvirt-gconfig-clock.h>
+#include <libvirt-gconfig/libvirt-gconfig-chardev-source.h>
+#include <libvirt-gconfig/libvirt-gconfig-chardev-target.h>
 #include <libvirt-gconfig/libvirt-gconfig-device.h>
+#include <libvirt-gconfig/libvirt-gconfig-device-chardev.h>
 #include <libvirt-gconfig/libvirt-gconfig-device-disk.h>
 #include <libvirt-gconfig/libvirt-gconfig-device-input.h>
 #include <libvirt-gconfig/libvirt-gconfig-device-video.h>
diff --git a/libvirt-gconfig/libvirt-gconfig.sym b/libvirt-gconfig/libvirt-gconfig.sym
index 6d895fb..fe4376b 100644
--- a/libvirt-gconfig/libvirt-gconfig.sym
+++ b/libvirt-gconfig/libvirt-gconfig.sym
@@ -4,6 +4,10 @@ LIBVIRT_GOBJECT_0.0.1 {
 	gvir_config_capabilities_new;
 	gvir_config_capabilities_new_from_xml;
 
+	gvir_config_chardev_source_get_type;
+
+	gvir_config_chardev_target_get_type;
+
 	gvir_config_clock_get_type;
 	gvir_config_clock_offset_get_type;
 	gvir_config_clock_new;
@@ -29,6 +33,12 @@ LIBVIRT_GOBJECT_0.0.1 {
 	gvir_config_device_disk_set_target_dev;
 	gvir_config_device_disk_set_type;
 
+	gvir_config_device_chardev_get_type;
+	gvir_config_device_chardev_new;
+	gvir_config_device_chardev_new_from_xml;
+	gvir_config_device_chardev_set_source;
+	gvir_config_device_chardev_set_target;
+
 	gvir_config_device_input_get_type;
 	gvir_config_device_input_device_type_get_type;
 	gvir_config_device_input_new;
-- 
1.7.7

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]