summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Ensure API overrides only used if API existsHEADmasterDaniel P. Berrange2013-11-221-0/+15
| | | | | | | Entries in the -overrides.xml files should only be recorded if the API also exists in the main API XML file. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Relax min required libvirt to version 0.9.11Daniel P. Berrange2013-11-221-1/+1
| | | | Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* virConnectGetCPUModelNames API appeared in 1.1.3Doug Goldstein2013-11-221-0/+4
|
* VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED appeared in 1.1.1Daniel P. Berrange2013-11-221-1/+4
|
* virDomainCreateXMLWithFiles and virDomainCreateWithFiles APIs appeared in 1.1.1Doug Goldstein2013-11-221-0/+4
| | | | | virDomainCreateXMLWithFiles() and virDomainCreateWithFiles() were not added to libvirt until 1.1.1
* virDomainMigrate3 and virDomainMigrateToURI3 appeared in 1.1.0Doug Goldstein2013-11-221-0/+4
| | | | | The functions virDomainMigrate3 and virDomainMigrateToURI3 were not added to libvirt until v1.1.0.
* virTypedParams* API appeared in 1.0.2 and used in 1.1.0Doug Goldstein2013-11-221-1/+4
| | | | | | | When building against versions of libvirt prior to 1.0.2, we can not provide wrappers for virTypedParams* APIs. In addition we don't need to have the helper APIs until 1.1.0 when the first API we wrap starts to use them.
* virDomainMigrateGetCompressionCache API appeared in 1.0.3Doug Goldstein2013-11-221-0/+4
|
* virDomainGetJobStats API appeared in 1.0.3Doug Goldstein2013-11-221-0/+4
|
* virNodeGetCPUMap API appeared in 1.0.0Doug Goldstein2013-11-221-1/+7
|
* VIR_DOMAIN_EVENT_ID_PMSUSPEND_DISK appeared in 1.0.0Daniel P. Berrange2013-11-221-0/+4
|
* virStoragePoolListAllVolumes API appeared in 0.10.2Doug Goldstein2013-11-221-0/+4
|
* virNode{Get,Set}MemoryParameters API appeared in 0.10.2Doug Goldstein2013-11-221-0/+4
|
* virConnectListAll* APIs appeared in 0.10.2Doug Goldstein2013-11-221-0/+24
|
* virDomainQemuAgentCommand appeared in 0.10.0Daniel P. Berrange2013-11-221-0/+5
| | | | Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* virDomainPinEmulator and virDomainGetEmulatorPinInfo APIs appeared in 0.10.0Doug Goldstein2013-11-221-0/+4
|
* VIR_DOMAIN_EVENT_ID_BALLOON_CHANGED appeared in 0.10.0Daniel P. Berrange2013-11-221-0/+5
|
* virConnect{Unr,R}egisterCloseCallback API appeared in 0.10.0Doug Goldstein2013-11-221-1/+4
|
* virDomainSnapshotListAllChildren API appeared in 0.9.13Doug Goldstein2013-11-221-0/+4
|
* virConnectListAllDomains API appeared in 0.9.13Doug Goldstein2013-11-221-0/+4
|
* virDomainListAllSnapshots API appeared in 0.9.13Doug Goldstein2013-11-221-0/+4
|
* Don't build LXC module when building less than 1.0.2Doug Goldstein2013-11-221-11/+23
| | | | | The functions that the LXC module wraps did not appear until 1.0.2 so we can't build the module unless we're building against 1.0.2 or newer.
* Create array of modules to be builtDoug Goldstein2013-11-221-2/+14
| | | | | | Create an array of modules to be built to allow for flexibility to enable or disable some modules in the future and allow for additional modules to be added easily
* Break generator.py to be called per moduleDoug Goldstein2013-11-222-13/+15
| | | | | | | Since we don't always want to build all the modules, and there might be more modules added in the future but we want to retain backwards compatibility with older libvirts, change generator.py to be called once per module instead of with all modules at once.
* Setup distutils build systemDaniel P. Berrange2013-11-229-0/+1229
| | | | | | | Create a setup.py for building libvirt python code and add supporting files Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Add execute permission for sanitytest.pyDaniel P. Berrange2013-11-221-0/+0
| | | | Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Add build/ to python module path for sanitytest.pyDaniel P. Berrange2013-11-221-0/+4
| | | | | | | The generated libvirt.py modules will be in the build/ directory, so santitytest.py must use that directory. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Import some virTypedParams* APIs from libvirtDoug Goldstein2013-11-222-0/+52
| | | | | | | virTypedParamsClear() and virTypedParamsFree() were introduced in libvirt 1.0.2. In an effort to keep the code clean bring these two functions to libvirt-python if we're building against a version of libvirt that's older than 1.0.2
* Import LIBVIR_CHECK_VERSION macro from libvirtDoug Goldstein2013-11-221-0/+10
| | | | | | | Add LIBVIR_CHECK_VERSION from libvirt upstream so that we can check the version of the library we are compiling against and support a range of libvirt versions. The macro was added to libvirt in 1.2.0 so we must provide it if its not defined.
* Import VIR_FORCE_CLOSE macro from libvirtDaniel P. Berrange2013-11-222-0/+27
| | | | | | Import the macro for safely closing file descriptors Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Remove use of virStrcpyStaticDaniel P. Berrange2013-11-221-1/+2
| | | | Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Import VIR_ALLOC / VIR_ALLOC_N / VIR_REALLOC_N functionsDaniel P. Berrange2013-11-226-53/+253
| | | | | | | Import the libvirt memory allocation functions, stripping the OOM testing and error reporting pieces. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Import code annotation macros from libvirtDaniel P. Berrange2013-11-221-0/+52
| | | | | | | Import ATTRIBUTE_RETURN_CHECK, ATTRIBUTE_UNUSED & ATTRIBUTE_NONNULL macros Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Import gnulib's ignore_value macroDaniel P. Berrange2013-11-221-0/+11
| | | | Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Import gnulib's xalloc_oversized macroDaniel P. Berrange2013-11-222-0/+16
| | | | Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Add decl of MIN macroDaniel P. Berrange2013-11-221-0/+4
| | | | Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Import STREQ macro from libvirtDaniel P. Berrange2013-11-222-0/+28
| | | | Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Update header file includesDaniel P. Berrange2013-11-224-24/+6
| | | | | | | | We're no longer using automake, so <config.h> files are not required. Also remove of all libvirt internal util header files. Reference generated header files in build/ subdir. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Update generator for new code layoutDaniel P. Berrange2013-11-221-44/+25
| | | | | | | Change the generator.py to - Take XML API file names on command line - Generate data in build/ directory instead of cwd
* Remove obsolete Makefile.amDaniel P. Berrange2013-11-222-194/+0
| | | | | | We are no longer using automake, so Makefile.am is obsolete Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Move python example programs into python/examples/ subdirectoryDaniel P. Berrange2013-11-2210-0/+1139
| | | | Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Mostly revert "python: remove virConnectGetCPUModelNames from globals"Daniel P. Berrange2013-11-221-0/+53
| | | | | | | | | | This reverts commit 6b90d7428d72e92db292a9228c44701bfd5003c9. The original problem was that libvirt_virConnectGetCPUModelNames was listed twice in the exports table, once automatically from the generator and once from the manual override. We merely needed to list it in the skip_impl list, and not delete the manually written code entirely.
* python: remove virConnectGetCPUModelNames from globalsDoug Goldstein2013-11-212-53/+1
| | | | | | | | | | Commit de51dc9c9aed0e615c8b301cccb89f4859324eb0 primarily added virConnectGetCPUModelNames as libvirt.getCPUModelNames(conn, arch) instead of libvirt.virConnect.getCPUModelNames(arch) so revert the code that does the former while leaving the code that does the later. This is the rest of the patch that was ACK'd by Dan but I committed only the partial patch in 6a8b8ae.
* python: remove virConnectGetCPUModelNames from globalsDoug Goldstein2013-11-212-12/+0
| | | | | | | Commit de51dc9c9aed0e615c8b301cccb89f4859324eb0 primarily added virConnectGetCPUModelNames as libvirt.getCPUModelNames(conn, arch) instead of libvirt.virConnect.getCPUModelNames(arch) so revert the code that does the former while leaving the code that does the later.
* maint: fix comma style issues: pythonEric Blake2013-11-201-6/+6
| | | | | | | | | Most of our code base uses space after comma but not before; fix the remaining uses before adding a syntax check. * python/libvirt-override.c: Consistently use commas. Signed-off-by: Eric Blake <eblake@redhat.com>
* Add missing break to switch-case blockDoug Goldstein2013-11-191-0/+1
| | | | | | The case label for VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED did not have its own break statement but relied on falling through which we probably don't want.
* python: Fix Create*WithFiles filefd passingMarian Neagul2013-10-221-0/+4
| | | | | | | Commit d76227be added functions virDomainCreateWithFiles and virDomainCreateXMLWithFiles, but there was a little piece missing in python bindings. This patch fixes proper passing of file descriptors in the overwrites of these functions.
* Don't link virt-login-shell against libvirt.so (CVE-2013-4400)Daniel P. Berrange2013-10-211-0/+1
| | | | | | | | | | | | | | | | | The libvirt.so library has far too many library deps to allow linking against it from setuid programs. Those libraries can do stuff in __attribute__((constructor) functions which is not setuid safe. The virt-login-shell needs to link directly against individual files that it uses, with all library deps turned off except for libxml2 and libselinux. Create a libvirt-setuid-rpc-client.la library which is linked to by virt-login-shell. A config-post.h file allows this library to disable all external deps except libselinux and libxml2. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* maint: avoid 'const fooPtr' in python bindingsEric Blake2013-10-142-13/+2
| | | | | | | | | | | | | | | 'const fooPtr' is the same as 'foo * const' (the pointer won't change, but it's contents can). But in general, if an interface is trying to be const-correct, it should be using 'const foo *' (the pointer is to data that can't be changed). Fix up offenders in the python bindings. * python/generator.py (py_types): Drop useless conversions. * python/libvirt-override.c (getPyVirTypedParameter) (setPyVirTypedParameter): Use intended type. Signed-off-by: Eric Blake <eblake@redhat.com>
* python: Document virNodeGetInfo bugMichal Privoznik2013-09-301-1/+1
| | | | | | | The memory size in virNodeGetInfo python API binding is reported in MiB instead of KiB (like we have in C struct). However, there already might be applications out there relying on this inconsistence so we can't simply fix it. Document this sad fact as known bug.