Re: [PATCH] util: add missing string->integer conversion functions

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

 



On 01/13/2011 05:10 PM, Eric Blake wrote:
It was awkward having only int conversion in the virStrToLong family,
but only long conversion in the virXPath family.  Make both families
support both types.

* src/util/util.h (virStrToLong_l, virStrToLong_ul): New
prototypes.
* src/util/xml.h (virXPathInt, virXPathUInt): Likewise.
* src/util/util.c (virStrToLong_l, virStrToLong_ul): New
functions.
* src/util/xml.c (virXPathInt, virXPathUInt): Likewise.
* src/libvirt_private.syms (util.h, xml.h): Export them.
---
  src/libvirt_private.syms |    4 +++
  src/util/util.c          |   40 +++++++++++++++++++++++++++++-
  src/util/util.h          |    8 ++++++
  src/util/xml.c           |   60 +++++++++++++++++++++++++++++++++++++++++++++-
  src/util/xml.h           |   12 +++++++--
  5 files changed, 119 insertions(+), 5 deletions(-)

ACK. Just what that doctor ordered!

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]