From d8d01cc94ce4a2955ef272319429dfd5a3e9df01 Mon Sep 17 00:00:00 2001 From: Adam Litke Date: Sun, 20 Dec 2009 13:48:37 +0100 Subject: python: Add python bindings for virDomainMemoryStats Enable virDomainMemoryStats in the python API. dom.memoryStats() will return a dictionary containing the supported statistics. A dictionary is required because the meaining of each quantity cannot be inferred from its index in a list. * python/generator.py: reenable bindings for this entry point * python/libvirt-override-api.xml python/libvirt-override.c: the generator can't handle this new function, add the new binding, and the XML description --- generator.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'generator.py') diff --git a/generator.py b/generator.py index 06f1ff4..56f8925 100755 --- a/generator.py +++ b/generator.py @@ -161,7 +161,6 @@ def enum(type, name, value): functions_failed = [] functions_skipped = [ "virConnectListDomains", - "virDomainMemoryStats" ] skipped_modules = { @@ -171,7 +170,6 @@ skipped_types = { # 'int *': "usually a return type", 'virConnectDomainEventCallback': "No function types in python", 'virEventAddHandleFunc': "No function types in python", - 'virDomainMemoryStatPtr': "Not implemented yet", } ####################################################################### @@ -283,6 +281,7 @@ skip_impl = ( 'virNetworkGetAutostart', 'virDomainBlockStats', 'virDomainInterfaceStats', + 'virDomainMemoryStats', 'virNodeGetCellsFreeMemory', 'virDomainGetSchedulerType', 'virDomainGetSchedulerParameters', -- cgit