ACK On Tue, Jun 26, 2012 at 05:56:16AM +0300, Zeeshan Ali (Khattak) wrote: > From: "Zeeshan Ali (Khattak)" <zeeshanak@xxxxxxxxx> > > 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 | 2 ++ > 3 files changed, 17 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 9894a3b..57b446c 100644 > --- a/libvirt-gconfig/libvirt-gconfig.sym > +++ b/libvirt-gconfig/libvirt-gconfig.sym > @@ -430,6 +430,8 @@ LIBVIRT_GCONFIG_0.0.10 { > gvir_config_capabilities_cpu_add_feature; > gvir_config_capabilities_cpu_set_topology; > > + gvir_config_capabilities_cpu_feature_set_name; > + > gvir_config_capabilities_cpu_topology_new; > gvir_config_capabilities_cpu_topology_new_from_xml; > gvir_config_capabilities_cpu_topology_set_cores; > -- > 1.7.10.4 > > -- > libvir-list mailing list > libvir-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/libvir-list
Attachment:
pgp2FCLVWcihr.pgp
Description: PGP signature
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list