python: Expose binding for virNodeGetCPUStats()

This patch adds binding for virNodeGetCPUStats method of libvirtd.
Return value is represented as a python dictionary mapping field names
to values.
This commit is contained in:
Peter Krempa
2011-11-28 18:19:27 +01:00
parent 3a9ce767f1
commit 49556023f2
3 changed files with 58 additions and 2 deletions

View File

@@ -375,9 +375,11 @@ struct _virNodeInfo {
/**
* VIR_NODE_CPU_STATS_ALL_CPUS:
*
* Macro for the total CPU time/utilization
* Value for specifying request for the total CPU time/utilization
*/
#define VIR_NODE_CPU_STATS_ALL_CPUS (-1)
typedef enum {
VIR_NODE_CPU_STATS_ALL_CPUS = -1,
} virNodeGetCPUStatsAllCPUs;
/**
* VIR_NODE_CPU_STATS_KERNEL: