---
.../libvirt-gconfig-storage-vol-target.c | 13 +++++++++++++
.../libvirt-gconfig-storage-vol-target.h | 3 +++
libvirt-gconfig/libvirt-gconfig.sym | 1 +
3 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/libvirt-gconfig/libvirt-gconfig-storage-vol-target.c
b/libvirt-gconfig/libvirt-gconfig-storage-vol-target.c
index 516a4b9..55022de 100644
--- a/libvirt-gconfig/libvirt-gconfig-storage-vol-target.c
+++ b/libvirt-gconfig/libvirt-gconfig-storage-vol-target.c
@@ -70,3 +70,16 @@ GVirConfigStorageVolTarget
*gvir_config_storage_vol_target_new_from_xml(const gc
xml, error);
return GVIR_CONFIG_STORAGE_VOL_TARGET(object);
}
+
+void gvir_config_storage_vol_target_set_format(GVirConfigStorageVolTarget *target,
+ const char *format)
+{
+ GVirConfigObject *node;
+
+ g_return_if_fail(GVIR_IS_CONFIG_STORAGE_VOL_TARGET(target));
+
+ node = gvir_config_object_replace_child(GVIR_CONFIG_OBJECT(target),
"format");
+ g_return_if_fail(GVIR_IS_CONFIG_OBJECT(node));
+ gvir_config_object_set_attribute(node, "type", format, NULL);
+ g_object_unref(G_OBJECT(node));
+}
diff --git a/libvirt-gconfig/libvirt-gconfig-storage-vol-target.h
b/libvirt-gconfig/libvirt-gconfig-storage-vol-target.h
index 9c14681..dc3a709 100644
--- a/libvirt-gconfig/libvirt-gconfig-storage-vol-target.h
+++ b/libvirt-gconfig/libvirt-gconfig-storage-vol-target.h
@@ -63,6 +63,9 @@ GVirConfigStorageVolTarget *gvir_config_storage_vol_target_new(void);
GVirConfigStorageVolTarget *gvir_config_storage_vol_target_new_from_xml(const gchar
*xml,
GError **error);
+void gvir_config_storage_vol_target_set_format(GVirConfigStorageVolTarget *target,
+ const char *format);
+
G_END_DECLS
#endif /* __LIBVIRT_GCONFIG_STORAGE_VOL_TARGET_H__ */
diff --git a/libvirt-gconfig/libvirt-gconfig.sym b/libvirt-gconfig/libvirt-gconfig.sym
index 34c3d6b..3ad0e0b 100644
--- a/libvirt-gconfig/libvirt-gconfig.sym
+++ b/libvirt-gconfig/libvirt-gconfig.sym
@@ -232,6 +232,7 @@ LIBVIRT_GCONFIG_0.0.1 {
gvir_config_storage_vol_target_get_type;
gvir_config_storage_vol_target_new;
gvir_config_storage_vol_target_new_from_xml;
+ gvir_config_storage_vol_target_set_format;
local:
*;
--
1.7.7.3