summaryrefslogtreecommitdiffstats
path: root/libvirt-override.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* 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
|
* 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-221-53/+53
| | | | | | | Import the libvirt memory allocation functions, stripping the OOM testing and error reporting pieces. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Import gnulib's xalloc_oversized macroDaniel P. Berrange2013-11-221-0/+1
| | | | Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Import STREQ macro from libvirtDaniel P. Berrange2013-11-221-0/+1
| | | | Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Update header file includesDaniel P. Berrange2013-11-221-9/+2
| | | | | | | | 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>
* 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-211-53/+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. This is the rest of the patch that was ACK'd by Dan but I committed only the partial patch in 6a8b8ae.
* 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.
* maint: avoid 'const fooPtr' in python bindingsEric Blake2013-10-141-2/+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: add bindings for virConnectGetCPUModelNamesGiuseppe Scrivano2013-09-231-0/+53
| | | | | Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> Signed-off-by: Eric Blake <eblake@redhat.com>
* Fix potential use of uninitialized value in virDomainGetVcpuPinInfoDaniel P. Berrange2013-09-201-1/+1
| | | | | | | The virDomainGetVcpuPinInfo python wrapper had a potential use of uninitialized values Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Add VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED eventJiri Denemark2013-07-181-1/+51
|
* Introduce new domain create APIs to pass pre-opened FDs to LXCDaniel P. Berrange2013-07-181-0/+89
| | | | | | | | | | | | | | | | | | | | With container based virt, it is useful to be able to pass pre-opened file descriptors to the container init process. This allows for containers to be auto-activated from incoming socket connections, passing the active socket into the container. To do this, introduce a pair of new APIs, virDomainCreateXMLWithFiles and virDomainCreateWithFiles, which accept an array of file descriptors. For the LXC driver, UNIX file descriptor passing will be used to send them to libvirtd, which will them pass them down to libvirt_lxc, which will then pass them to the container init process. This will only be implemented for LXC right now, but the design is generic enough it could work with other hypervisors, hence I suggest adding this to libvirt.so, rather than libvirt-lxc.so Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* python: return dictionary without value in case of no blockjobGuannan Ren2013-07-151-15/+39
| | | | | | | | | | | | | | Currently, when there is no blockjob, dom.blockJobInfo('vda') still reports error because it doesn't distinguish return value 0 from -1. libvirt.libvirtError: virDomainGetBlockJobInfo() failed virDomainGetBlockJobInfo() API return value: -1 in case of failure, 0 when nothing found, 1 found. And use PyDict_SetItemString instead of PyDict_SetItem when key is of string type. PyDict_SetItemString increments key/value reference count, so call Py_DECREF() for value. For key, we don't need to do this, because PyDict_SetItemString will handle it internally.
* Convert 'int i' to 'size_t i' in python/ filesDaniel P. Berrange2013-07-101-44/+70
| | | | | | | | | Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* viralloc: Report OOM error on failureMichal Privoznik2013-07-101-51/+51
| | | | | Similarly to VIR_STRDUP, we want the OOM error to be reported in VIR_ALLOC and friends.
* python: Add bindings for extensible migration APIsJiri Denemark2013-06-251-0/+218
| | | | | The patch implements wrappers for virDomainMigrate3 and virDomainMigrateToURI3.
* syntax: prefer space after semicolon in for loopEric Blake2013-05-281-19/+19
| | | | | | | | | | | | | | | | | | | | | | | | I noticed several unusual spacings in for loops, and decided to fix them up. See the next commit for the syntax check that found all of these. * examples/domsuspend/suspend.c (main): Fix spacing. * python/libvirt-override.c: Likewise. * src/conf/interface_conf.c: Likewise. * src/security/virt-aa-helper.c: Likewise. * src/util/virconf.c: Likewise. * src/util/virhook.c: Likewise. * src/util/virlog.c: Likewise. * src/util/virsocketaddr.c: Likewise. * src/util/virsysinfo.c: Likewise. * src/util/viruuid.c: Likewise. * src/vbox/vbox_tmpl.c: Likewise. * src/xen/xen_hypervisor.c: Likewise. * tools/virsh-domain-monitor.c (vshDomainStateToString): Drop default case, to let compiler check us. * tools/virsh-domain.c (vshDomainVcpuStateToString): Likewise. Signed-off-by: Eric Blake <eblake@redhat.com>
* python: Remove the whitespace before ";"Osier Yang2013-05-211-8/+8
|
* Fix build of python bindings on Python 2.4Daniel P. Berrange2013-05-091-0/+4
| | | | | | | The PyDict_Next method on Python <= 2.4 used 'int' instead of "Py_ssize_t" for the 'pos' parameter Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* virutil: Move string related functions to virstring.cMichal Privoznik2013-05-021-0/+1
| | | | | | | | The source code base needs to be adapted as well. Some files include virutil.h just for the string related functions (here, the include is substituted to match the new file), some include virutil.h without any need (here, the include is removed), and some require both.
* docs: fix usage of 'onto'Eric Blake2013-04-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | http://www.uhv.edu/ac/newsletters/writing/grammartip2009.07.01.htm (and several other sites) give hints that 'onto' is best used if you can also add 'up' just before it and still make sense. In many cases in the code base, we really want the two-word form, or even a simplification to just 'on' or 'to'. * docs/hacking.html.in: Use correct 'on to'. * python/libvirt-override.c: Likewise. * src/lxc/lxc_controller.c: Likewise. * src/util/virpci.c: Likewise. * daemon/THREADS.txt: Use simpler 'on'. * docs/formatdomain.html.in: Better usage. * docs/internals/rpc.html.in: Likewise. * src/conf/domain_event.c: Likewise. * src/rpc/virnetclient.c: Likewise. * tests/qemumonitortestutils.c: Likewise. * HACKING: Regenerate. Signed-off-by: Eric Blake <eblake@redhat.com>
* syntax-check: Only allows to include public headers in external toolsOsier Yang2013-04-181-2/+2
| | | | | | With this patch, include public headers in "" form is only allowed for "internal.h". And only the external tools (examples|tools|python |include/libvirt) can include the public headers in <> form.
* python: Fix emulatorpin API bindingsPeter Krempa2013-03-211-0/+118
| | | | | | | | | | The addition of emulator pinning APIs didn't think of doing the right job with python APIs for them. The default generator produced unusable code for this. This patch switches to proper code as in the case of domain Vcpu pining. This change can be classified as a python API-breaker but in the state the code was before I doubt anyone was able to use it successfully.
* python: Implement virDomainMigrateGetCompressionCache wrapperJiri Denemark2013-02-221-0/+28
|
* python: Implement virDomainGetJobStats wrapperJiri Denemark2013-02-221-0/+42
|
* Introduce virTypedParamsClear public APIJiri Denemark2013-01-181-39/+20
| | | | | The function is just a renamed public version of former virTypedParameterArrayClear.
* python: Avoid freeing uninitialized new_params pointerJiri Denemark2013-01-171-7/+7
|
* Rename util.{c,h} to virutil.{c,h}Daniel P. Berrange2012-12-211-1/+1
|
* Rename memory.{c,h} to viralloc.{c,h}Daniel P. Berrange2012-12-211-1/+1
|