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

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

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:
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.



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(-)


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