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

[libvirt] [libvirt-glib 4/8] Add gvir_config_capabilities_cpu_feature_set_name()



From: "Zeeshan Ali (Khattak)" <zeeshanak gnome org>

Setter for CapabilitiesCpuFeature.name.
---
 libvirt-gconfig/libvirt-gconfig-capabilities-cpu-feature.c |   12 ++++++++++++
 libvirt-gconfig/libvirt-gconfig-capabilities-cpu-feature.h |    3 +++
 libvirt-gconfig/libvirt-gconfig.sym                        |    1 +
 3 files changed, 16 insertions(+)

diff --git a/libvirt-gconfig/libvirt-gconfig-capabilities-cpu-feature.c b/libvirt-gconfig/libvirt-gconfig-capabilities-cpu-feature.c
index 0c71885..98e736d 100644
--- a/libvirt-gconfig/libvirt-gconfig-capabilities-cpu-feature.c
+++ b/libvirt-gconfig/libvirt-gconfig-capabilities-cpu-feature.c
@@ -56,3 +56,15 @@ gvir_config_capabilities_cpu_feature_get_name(GVirConfigCapabilitiesCpuFeature *
                                             NULL,
                                             "name");
 }
+
+void
+gvir_config_capabilities_cpu_feature_set_name(GVirConfigCapabilitiesCpuFeature *feature,
+                                              const gchar *name)
+{
+    g_return_if_fail(GVIR_CONFIG_IS_CAPABILITIES_CPU_FEATURE(feature));
+    g_return_if_fail(name != NULL);
+
+    gvir_config_object_set_attribute(GVIR_CONFIG_OBJECT(feature),
+                                     "name", name,
+                                     NULL);
+}
diff --git a/libvirt-gconfig/libvirt-gconfig-capabilities-cpu-feature.h b/libvirt-gconfig/libvirt-gconfig-capabilities-cpu-feature.h
index 8bb2f2b..f87693f 100644
--- a/libvirt-gconfig/libvirt-gconfig-capabilities-cpu-feature.h
+++ b/libvirt-gconfig/libvirt-gconfig-capabilities-cpu-feature.h
@@ -61,6 +61,9 @@ GType gvir_config_capabilities_cpu_feature_get_type(void);
 
 const gchar *
 gvir_config_capabilities_cpu_feature_get_name(GVirConfigCapabilitiesCpuFeature *feature);
+void
+gvir_config_capabilities_cpu_feature_set_name(GVirConfigCapabilitiesCpuFeature *feature,
+                                              const gchar *name);
 
 G_END_DECLS
 
diff --git a/libvirt-gconfig/libvirt-gconfig.sym b/libvirt-gconfig/libvirt-gconfig.sym
index d412d56..f66a22e 100644
--- a/libvirt-gconfig/libvirt-gconfig.sym
+++ b/libvirt-gconfig/libvirt-gconfig.sym
@@ -397,6 +397,7 @@ LIBVIRT_GCONFIG_0.0.9 {
 
 	gvir_config_capabilities_cpu_feature_get_type;
 	gvir_config_capabilities_cpu_feature_get_name;
+	gvir_config_capabilities_cpu_feature_set_name;
 
 	gvir_config_capabilities_cpu_topology_get_type;
 	gvir_config_capabilities_cpu_topology_get_cores;
-- 
1.7.10.4


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