libvirt/examples
John Ferlan b421c35c98 hellolibvirt: Adjust code to use new APIs
Change the order of some conditions and use the AllDomains API to get
a list of all the active and defined domains, then use the Active and
Name API's in order to print.

This changes here adjust the output from:

Attempting to connect to hypervisor
Connected to hypervisor at "qemu:///system"
Hypervisor: "QEMU" version: 0.32.656
There are 0 active and 2 inactive domains
Inactive domains:
  foo
  bar
Disconnected from hypervisor

to

Attempting to connect to hypervisor
Connected to hypervisor at "qemu:///system"
Hypervisor: "QEMU" version: 0.32.656
There are 0 active and 2 inactive domains
       foo (non-active)
       bar (non-active)
Disconnected from hypervisor
2013-03-04 17:36:03 -05:00
..
apparmor apparmor: QEMU bridge helper policy updates 2012-08-06 16:56:59 +02:00
domain-events Remove more trailing semicolons in Python files 2013-02-07 19:52:44 +01:00
dominfo Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
domsuspend Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
hellolibvirt hellolibvirt: Adjust code to use new APIs 2013-03-04 17:36:03 -05:00
openauth maint: consolidate several .gitignore files 2012-02-03 15:27:16 -07:00
python Various typos and misspellings 2012-10-12 00:03:43 +02:00
systemtap maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
xml Revert "Refactor the libvirt RPM daemon pieces" 2012-04-03 14:49:31 +08:00