[libvirt] [libvirt-glib 1/3] Add gvir_config_capabilities_cpu_get_model()

Christophe Fergeau cfergeau at redhat.com
Mon Jul 14 09:44:01 UTC 2014


On Tue, Jul 08, 2014 at 07:41:55PM +0100, Zeeshan Ali (Khattak) wrote:
> On Mon, Jul 7, 2014 at 12:09 PM, Christophe Fergeau <cfergeau at redhat.com> wrote:
> > This is returning a char *
> > <capabilities>
> >   <host>
> >     <cpu>
> >       <model>xxx</model>
> >     </cpu>
> >   </host>
> > </capabilities>
> > while the next patch exposes the model from the /domain/cpu/model node
> > as an actual object, why the difference?
> 
> Because /domain/cpu/model node has at least one attribute and hence a
> simple char * won't do there.

My question was the opposite one, why return a char * here instead of an
actual object since you have to add it anyway?

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140714/c14ef545/attachment-0001.sig>


More information about the libvir-list mailing list