1. 16 9月, 2011 2 次提交
  2. 14 9月, 2011 1 次提交
  3. 06 9月, 2011 1 次提交
  4. 02 9月, 2011 1 次提交
  5. 25 7月, 2011 2 次提交
    • T
      python: add Python binding for virDomainGetVcpuPinInfo API · da4009ec
      Taku Izumi 提交于
      This patch adds the Python bindings for virDomainGetVcpuPinInfo API.
      * python/generator.py: add it to generator skip list
      * python/libvirt-override-api.xml: provide an override description
      * python/libvirt-override.c: provide an override binding implementation
      da4009ec
    • T
      python: add Python binding for virDomainPinVcpusFlags API · 18a68f7d
      Taku Izumi 提交于
      This patch adds the Python bindings for virDomainPinVcpuFlags API.
      * python/generator.py: add it to the generator skip list
      * python/libvirt-override-api.xml: provide override description
      * python/libvirt-override.c: provide override bindings implementation
      18a68f7d
  6. 22 7月, 2011 2 次提交
    • A
      Enable virDomainBlockPull in the python API · f50750b2
      Adam Litke 提交于
      virDomainGetBlockJobInfo requires manual override since it returns a
      custom type.
      
      * python/generator.py: reenable bindings for this entry point
      * python/libvirt-override-api.xml python/libvirt-override.c:
        manual overrides
      f50750b2
    • A
      Add new API virDomainBlockPull* to headers · 152e8103
      Adam Litke 提交于
      Set up the types for the block pull functions and insert them into the
      virDriver structure definition.  Symbols are exported in this patch to
      prevent
      documentation compile failures.
      
      * include/libvirt/libvirt.h.in: new API
      * src/driver.h: add the new entry to the driver structure
      * python/generator.py: fix compiler errors, the actual python bindings
      * are
        implemented later
      * src/libvirt_public.syms: export symbols
      * docs/apibuild.py: Extend 'unsigned long' parameter exception to this
      * API
      152e8103
  7. 19 7月, 2011 1 次提交
    • D
      Quieten build & ensure API build scripts exit with non-zero status · 8665f855
      Daniel P. Berrange 提交于
      The current API build scripts will continue and exit with a zero
      status even if they find problems. This has been the cause of many
      build problems, or hidden build errors, in the past. Change the
      scripts so they always exit with a non-zero status for any problems
      they do not understand. Also turn off all debug output by default
      so they respect $(AM_V_GEN)
      
      * docs/Makefile.am: Use $(AM_V_GEN) for API/HTML scripts
      * docs/apibuild.py, python/generator.py: Exit with non-zero status
        if problems are found. Also be silent, not outputting any debug
        messages.
      * src/Makefile.am: Use $(AM_V_GEN) for ESX generator
      * python/Makefile.am: Tweak rule
      8665f855
  8. 24 6月, 2011 3 次提交
  9. 23 6月, 2011 1 次提交
  10. 21 6月, 2011 6 次提交
  11. 17 6月, 2011 1 次提交
  12. 15 6月, 2011 5 次提交
  13. 14 6月, 2011 1 次提交
    • H
      Deprecate several CURRENT/LIVE/CONFIG enums · fbd7820b
      Hu Tao 提交于
      This patch deprecates following enums:
      
      VIR_DOMAIN_MEM_CURRENT
      VIR_DOMAIN_MEM_LIVE
      VIR_DOMAIN_MEM_CONFIG
      
      VIR_DOMAIN_VCPU_LIVE
      VIR_DOMAIN_VCPU_CONFIG
      
      VIR_DOMAIN_DEVICE_MODIFY_CURRENT
      VIR_DOMAIN_DEVICE_MODIFY_LIVE
      VIR_DOMAIN_DEVICE_MODIFY_CONFIG
      
      And modify internal codes to use virDomainModificationImpact.
      fbd7820b
  14. 29 5月, 2011 1 次提交
    • E
      sched: introduce virDomainGetSchedulerParametersFlags · bc4ee589
      Eric Blake 提交于
      If we can choose live or config when setting, then we need to
      be able to choose which one we are querying.
      
      Also, make the documentation clear that set must use a non-empty
      subset (some of the hypervisors fail if params is NULL).
      
      * include/libvirt/libvirt.h.in
      (virDomainGetSchedulerParametersFlags): New prototype.
      * src/libvirt.c (virDomainGetSchedulerParametersFlags): Implement
      it.
      * src/libvirt_public.syms: Export it.
      * python/generator.py (skip_impl): Don't auto-generate.
      * src/driver.h (virDrvDomainGetSchedulerParametersFlags): New
      callback.
      bc4ee589
  15. 18 5月, 2011 1 次提交
    • E
      libvirt.h: consolidate typed parameter handling · 824dcaff
      Eric Blake 提交于
      The new type is identical to the three old types that it replaces,
      and by creating a common type, this allows future patches to share
      common code that manipulates typed parameters.
      
      This change is backwards-compatible in API (recompilation works
      without any edits) and ABI (an older client that has not been
      recompiled uses the same layout) for code using only public
      names; only code using private names (those beginning with _)
      will have to adapt.
      
      * include/libvirt/libvirt.h.in (virTypedParameterType)
      (VIR_TYPED_PARAM_FIELD_LENGTH, _virTypedParameter): New enum,
      macro, and type.
      (virSchedParameter, virBlkioParameter, virMemoryParameter):
      Rewrite in terms of a common type, while keeping all old public
      names for backwards compatibility.
      (struct _virSchedParameter, struct _virBlkioParameter)
      (struct _virMemoryParameter): Delete - these are private names.
      * python/generator.py (enum): Cope with the refactoring.
      824dcaff
  16. 17 5月, 2011 1 次提交
  17. 16 5月, 2011 1 次提交
    • J
      virDomainGetState public API · d65a924b
      Jiri Denemark 提交于
      This API is supposed to replace virDomainGetInfo when the only purpose
      of calling it is getting current domain status.
      d65a924b
  18. 14 3月, 2011 1 次提交
    • J
      python: Use hardcoded python path in libvirt.py · c51f0827
      Jiri Denemark 提交于
      This partially reverts (and fixes that part in a different way) commit
      e4384459, which replaced
      ``/usr/bin/python'' with ``/usr/bin/env python'' in all examples or
      scripts used during build to generate other files.
      
      However, python bindings module is compiled and linked against a
      specific python discovered or explicitly provided in configure phase.
      Thus libvirt.py, which is generated and installed into the system,
      should use the same python binary for which the module has been built.
      
      The hunk in Makefile.am replaces $(srcdir) with $(PYTHON), which might
      seem wrong but it is not. generator.py didn't use any of its command
      line arguments so passing $(srcdir) to it was redundant.
      c51f0827
  19. 11 3月, 2011 1 次提交
  20. 18 2月, 2011 1 次提交
  21. 15 11月, 2010 1 次提交
    • M
      Use python discovered through env instead of hardcoding a path · e4384459
      Matthias Bolte 提交于
      This is more flexible regarding the location of the python binary
      but doesn't allow to pass the -u flag. The -i flag can be passed
      from inside the script using the PYTHONINSPECT env variable.
      
      This fixes a problem with the esx_vi_generator.py on FreeBSD.
      e4384459
  22. 13 10月, 2010 1 次提交
    • N
      Adding structure and defines for virDomainSet/GetMemoryParameters · bf1b76ff
      Nikunj A. Dadhania 提交于
      This patch adds a structure virMemoryParameter, it contains the name of
      the
      parameter and the type of the parameter along with a union.
      
      dv:
      + rename enums to VIR_DOMAIN_MEMORY_PARAM_*
      + remove some extraneous tabs
      
      v4:
      + Add unsigned int flags to the public api for future extensions
      
      v3:
      + Protoype for virDomainGetMemoryParameters and dummy python binding.
      
      v2:
      + Includes dummy python bindings for the library to build cleanly.
      + Define string constants like "hard_limit", etc.
      + re-order this patch.
      bf1b76ff
  23. 21 5月, 2010 1 次提交
    • C
      Fix up the python bindings for snapshotting. · 8749256d
      Chris Lalancette 提交于
      This involved a few fixes.  To start with,
      an virDomainSnapshot object is really tied to a
      domain, not a connection, so we have to generate
      a slightly different object so that we can get
      at self._dom for the object.
      
      Next, we had to "dummy" up an override piece of
      XML with a bogus argument that the function doesn't
      actually take.  That's so that the generator places
      virDomainRevertToSnapshot underneath the correct
      class (namely, the virDomain class).
      
      Finally, we had to hand-implement the
      virDomainRevertToSnapshot implementation, ignoring the
      bogus pointer we are being passed.
      
      With all of this in place, I was able to successfully
      take a snapshot and revert to it using only the
      Python bindings.
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      8749256d
  24. 30 4月, 2010 1 次提交
    • D
      Implement python binding for virDomainGetBlockInfo · 05776e09
      Daniel P. Berrange 提交于
      This binds the virDomainGetBlockInfo API to python's blockInfo
      method on the domain object
      
      >>> c = libvirt.openReadOnly('qemu:///session')
      >>> d = c.lookupByName('demo')
      >>> f = d.blockInfo("/dev/loop0", 0)
      >>> print f
      [1048576000L, 104857600L, 104857600L]
      
      * python/libvirt-override-api.xml: Define override signature
      * python/generator.py: Skip C impl generator for virDomainGetBlockInfo
      * python/libvirt-override.c: Manual impl of virDomainGetBlockInfo
      05776e09
  25. 29 4月, 2010 1 次提交
  26. 20 4月, 2010 1 次提交
    • D
      Fixup python binding for virDomainSnapshot APIs · 90302e7f
      Daniel P. Berrange 提交于
      The generator code was totally wrong for the virDomainSnapshot
      APIs, not generating the wrapper class, and giving methods the
      wrong names
      
      * generator.py: Set metadata for virDomainSnapshot type & APIs
      * libvirt-override-api.xml, libvirt-override.c: Hand-code the
        virDomainSnapshotListNames glue layer
      90302e7f