diff options
author | Eric Blake <eblake@redhat.com> | 2012-02-02 16:28:26 -0700 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2012-02-03 10:41:44 -0700 |
commit | 29aedfa4f48a9cc25d9049b7fc3ecd849147274b (patch) | |
tree | eb221ad07649c2f72e85f085da9d608ff3bb23e9 /generator.py | |
parent | 1104c3ed216f3f46cfe62afbe70bb95f90787f69 (diff) | |
download | libvirt-python-v6-29aedfa4f48a9cc25d9049b7fc3ecd849147274b.tar.gz libvirt-python-v6-29aedfa4f48a9cc25d9049b7fc3ecd849147274b.tar.xz libvirt-python-v6-29aedfa4f48a9cc25d9049b7fc3ecd849147274b.zip |
python: drop redundant function
I noticed some redundant code while preparing my next patch.
* python/generator.py (py_types): Fix 'const char *' mapping.
* python/typewrappers.h (libvirt_charPtrConstWrap): Drop.
* python/typewrappers.c (libvirt_charPtrConstWrap): Delete, since
it is identical to libvirt_constcharPtrWrap.
Diffstat (limited to 'generator.py')
-rwxr-xr-x | generator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generator.py b/generator.py index b514af5..0728519 100755 --- a/generator.py +++ b/generator.py @@ -263,7 +263,7 @@ py_types = { 'unsigned long long': ('l', None, "longlong", "long long"), 'unsigned char *': ('z', None, "charPtr", "char *"), 'char *': ('z', None, "charPtr", "char *"), - 'const char *': ('z', None, "charPtrConst", "const char *"), + 'const char *': ('z', None, "constcharPtr", "const char *"), 'size_t': ('n', None, "size_t", "size_t"), 'virDomainPtr': ('O', "virDomain", "virDomainPtr", "virDomainPtr"), |