1. 29 3月, 2011 1 次提交
    • D
      Update event loop example programs to demonstrate best practice · 0c97e70b
      Daniel P. Berrange 提交于
      The example C event loop code is a nasty hack and not compliant
      with the require API semantics. Delete this, so that developers
      don't mistakenly copy it. Instead call the new public event loop
      APIs.
      
      Update the python event loop example, so that it can optionally
      use the public event APIs, as an alternative to the pure python
      code. The pure python event code is a good working example, so
      don't delete it.
      
      Also make the python example use a read only connection to avoid
      authentication prompts
      
      * examples/domain-events/events-c/event-test.c: Replace event
        loop code with use of public APIs
      * examples/domain-events/events-python/event-test.py: Allow
        optional use of new public event APIs
      0c97e70b
  2. 28 1月, 2011 1 次提交
    • D
      Prevent overfilling of self-pipe in python event loop · 331d7b09
      Daniel P. Berrange 提交于
      If the event loop takes a very long time todo something, it is
      possible for the 'self pipe' buffer to become full at which
      point the entire event loop + remote driver deadlock. Use a
      boolean flag to ensure we have strict one-in, one-out behaviour
      on writes/reads of the 'self pipe'
      331d7b09
  3. 11 1月, 2011 1 次提交
  4. 23 4月, 2010 1 次提交
    • D
      Fix printing of event detail in python events demo program · de8ecb12
      Daniel P. Berrange 提交于
      The events demo program is slightly misleading printing
      
        myDomainEventCallback1 EVENT: Domain f14i686(-1) Added
      
      which is not distinguishing Add vs Update events. It should have
      been doing
      
        myDomainEventCallback1 EVENT: Domain f14i686(-1) Defined Updated
      
      * examples/domain-events/events-python/event-test.py: Fully print
        event detail info string
      de8ecb12
  5. 08 4月, 2010 1 次提交
    • D
      Fix up python bindings for new event callbacks · 6df7d55d
      Daniel P. Berrange 提交于
      The generator was disabled for the new event callbacks, since they
      need to be hand written. This patch  adds the C and python glue to
      expose the new APIs in the python binding. The python example
      program is extended to demonstrate of the code
      
      * python/libvirt-override.c: Registration and dispatch of events
         at the C layer
      * python/libvirt-override-virConnect.py: Python glue for events
      * examples/domain-events/events-python/event-test.py: Demo use
        of new event callbacks
      6df7d55d
  6. 24 3月, 2010 1 次提交
  7. 09 10月, 2009 1 次提交
    • D
      Rewrite example domain events programm for python · 93f77250
      Daniel P. Berrange 提交于
      The existing python demo for domain events does not fully
      implement the event loop contract. This makes the code useless
      for real world applications. This change re-writes the demo so
      that it has a full event loop implementation which is suitable
      for application usage & better demonstrates integration
      
      * examples/domain-events/events-python/event-test.py: Rewrite
        to include a real world usable event loop implementation
      93f77250
  8. 16 7月, 2009 1 次提交
    • J
      remove all trailing blank lines · 07613d20
      Jim Meyering 提交于
      by running this command:
      git ls-files -z | xargs -0 perl -pi -0777 -e 's/\n\n+$/\n/'
      This is in preparation for a more strict make syntax-check
      rule that will detect trailing blank lines.
      07613d20
  9. 28 5月, 2009 1 次提交
  10. 25 11月, 2008 1 次提交
  11. 20 11月, 2008 1 次提交
  12. 18 11月, 2008 1 次提交
  13. 31 10月, 2008 1 次提交
    • D
      * python/Makefile.am python/generator.py python/libvir.c · 7b716fce
      Daniel Veillard 提交于
        python/libvir.py python/libvirt_wrap.h python/types.c:
        adds support for events from the python bindings, also
        improves the generator allowing to embbed per function
        definition files, patch by Ben Guthro
      * examples/domain-events/events-python/event-test.py: also
        adds a programming example
      Daniel
      7b716fce