summaryrefslogtreecommitdiffstats
path: root/generator.py
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2009-12-15 14:49:51 +0000
committerDaniel Veillard <veillard@redhat.com>2009-12-15 14:49:51 +0000
commit470140253b9fc1f572b71e7a4fea43877c7fb691 (patch)
tree6cf0cbc615f371f49367243a1be89bcf14798dcc /generator.py
parent8e00488f1334e5acb01ca9bac5b4f73a6565d48a (diff)
downloadlibvirt-python-v6-RHEL-5.5.tar.gz
libvirt-python-v6-RHEL-5.5.tar.xz
libvirt-python-v6-RHEL-5.5.zip
- fix python binding generator to avoid clashes in method names - Resolves: rhbz#510427 - nodedev-destroy can hang libvirtd - Resolves: rhbz#510430 - avoid spurious errors on npiv device creation - Resolves: rhbz#514324 - node device APIs should expose the relationship between SR-IOV VFs and PFs - Resolves: rhbz#481748 - implement --pool option for virsh vol-path - Resolves: rhbz#509306 - cannot delete storage pool problem - Resolves: rhbz#496579 - Can not hotplug vtd device to Xen guest - Resolves: rhbz#546671 - Inactive KVM guest memory reporting via 'info' is strange - Resolves: rhbz#508266 - command 'virsh nodedev-create' fails with out of memory error - Resolves: rhbz#510426 - Command 'virsh find-storage-pool-sources' failure unknown error - Resolves: rhbz#509979
Diffstat (limited to 'generator.py')
-rwxr-xr-xgenerator.py40
1 files changed, 39 insertions, 1 deletions
diff --git a/generator.py b/generator.py
index 00c9aca..81de5e6 100755
--- a/generator.py
+++ b/generator.py
@@ -671,6 +671,9 @@ functions_list_exception_test = {
functions_list_default_test = "%s is None"
def is_list_type (name):
+ whitelist = [ "virDomainBlockStats",
+ "virDomainInterfaceStats" ]
+
return name[-1:] == "*"
def nameFixup(name, classe, type, file):
@@ -690,6 +693,21 @@ def nameFixup(name, classe, type, file):
elif name[0:16] == "virNetworkLookup":
func = name[3:]
func = string.lower(func[0:1]) + func[1:]
+ elif name[0:18] == "virInterfaceDefine":
+ func = name[3:]
+ func = string.lower(func[0:1]) + func[1:]
+ elif name[0:21] == "virInterfaceCreateXML":
+ func = name[3:]
+ func = string.lower(func[0:1]) + func[1:]
+ elif name[0:18] == "virInterfaceLookup":
+ func = name[3:]
+ func = string.lower(func[0:1]) + func[1:]
+ elif name[0:15] == "virSecretDefine":
+ func = name[3:]
+ func = string.lower(func[0:1]) + func[1:]
+ elif name[0:15] == "virSecretLookup":
+ func = name[3:]
+ func = string.lower(func[0:1]) + func[1:]
elif name[0:20] == "virStoragePoolDefine":
func = name[3:]
func = string.lower(func[0:1]) + func[1:]
@@ -717,6 +735,23 @@ def nameFixup(name, classe, type, file):
elif name[0:10] == "virNetwork":
func = name[10:]
func = string.lower(func[0:1]) + func[1:]
+ elif name[0:15] == "virInterfaceGet":
+ func = name[15:]
+ func = string.lower(func[0:1]) + func[1:]
+ elif name[0:12] == "virInterface":
+ func = name[12:]
+ func = string.lower(func[0:1]) + func[1:]
+ elif name[0:12] == 'virSecretGet':
+ func = name[12:]
+ func = string.lower(func[0:1]) + func[1:]
+ elif name[0:9] == 'virSecret':
+ func = name[9:]
+ func = string.lower(func[0:1]) + func[1:]
+ elif name[0:12] == 'virStreamNew':
+ func = "newStream"
+ elif name[0:9] == 'virStream':
+ func = name[9:]
+ func = string.lower(func[0:1]) + func[1:]
elif name[0:17] == "virStoragePoolGet":
func = name[17:]
func = string.lower(func[0:1]) + func[1:]
@@ -732,7 +767,7 @@ def nameFixup(name, classe, type, file):
elif name[0:13] == "virNodeDevice":
if name[13:16] == "Get":
func = string.lower(name[16]) + name[17:]
- elif name[13:19] == "Lookup" or name[13:] == "Create":
+ elif name[13:19] == "Lookup" or name[13:19] == "Create":
func = string.lower(name[3]) + name[4:]
else:
func = string.lower(name[13]) + name[14:]
@@ -757,6 +792,9 @@ def nameFixup(name, classe, type, file):
func = "OSType"
if func == "xMLDesc":
func = "XMLDesc"
+ if func == "mACString":
+ func = "MACString"
+
return func