[PATCH 0/2] Expose virNodeGetCPUStats and virNodeGetMemoryStats in python

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

 



These patches add two API functions to the libvirt python bindings, that
were missing.

The constants denoting a summary stat value instead of a separate per-node
values was declared using a preprocessor macro:
...
#define VIR_NODE_MEMORY_STATS_ALL_CELLS (-1)
#define VIR_NODE_CPU_STATS_ALL_CPUS (-1)
...
This inhibits automatic generation of these constants in the automaticaly
generated python library code.

If this change is too controversial, there's another option: Including these
constants in the python library (using libvirt-override.py). Please let me know
which of those options you prefer.

Thanks

Peter

Peter Krempa (2):
  python: Expose binding for virNodeGetCPUStats()
  python: Expose binding for virNodeGetMemoryStats()

 include/libvirt/libvirt.h.in    |   12 +++--
        - change macro definitions to enums

 python/libvirt-override-api.xml |   14 ++++++
        - add doc's about newly added functions

 python/libvirt-override.c       |   95 +++++++++++++++++++++++++++++++++++++++
        - add code for calling those functions and reclaiming return values.

 3 files changed, 117 insertions(+), 4 deletions(-)

-- 
1.7.3.4

--
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]