Re: [libvirt] [libvirt-glib 3/4] config: Handle units in gvir_config_[gs]et_memory

2012-09-07 Thread Daniel P. Berrange
On Tue, Sep 04, 2012 at 02:44:47PM +0200, Christophe Fergeau wrote: > gvir_config_[gs]et_memory have an optional 'unit' attribute which > indicates the unit used to express the memory size. This commit > adds support for parsing this unit, and adjusting the returned > value accordingly. > --- > li

[libvirt] [libvirt-glib 3/4] config: Handle units in gvir_config_[gs]et_memory

2012-09-04 Thread Christophe Fergeau
gvir_config_[gs]et_memory have an optional 'unit' attribute which indicates the unit used to express the memory size. This commit adds support for parsing this unit, and adjusting the returned value accordingly. --- libvirt-gconfig/libvirt-gconfig-domain.c | 81 ++-- 1