• E
    util: new function for scaling numbers · 0d90823e
    Eric Blake 提交于
    Scaling an integer based on a suffix is something we plan on reusing
    in several contexts: XML parsing, virsh CLI parsing, and possibly
    elsewhere.  Make it easy to reuse, as well as adding in support for
    powers of 1000.
    
    * src/util/util.h (virScaleInteger): New function.
    * src/util/util.c (virScaleInteger): Implement it.
    * src/libvirt_private.syms (util.h): Export it.
    0d90823e
libvirt_private.syms 31.9 KB