New API: inspect-get-windows-current-control-set
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 5 Apr 2011 11:44:34 +0000 (12:44 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 5 Apr 2011 19:01:15 +0000 (20:01 +0100)
commit9e7c6a548353bde925c16434711bcc6208038d83
treeb1b46b05e7319a36c38813a3b1eb15eb277ed948
parent9b945cfa781a0f25c3b81239e2fcddceeede6e44
New API: inspect-get-windows-current-control-set

This returns the actual registry key corresponding to
CurrentControlSet (eg. it might be "ControlSet001").

Previously the inspection code was hard-coding ControlSet001.  Now we
use the correct control set, and also make it available to callers
through the API.

This commit also updates the virt-dhcp-address example so it uses this
new API.

virt-inspector displays the current control set when available.
examples/virt-dhcp-address.c
generator/generator_actions.ml
images/guest-aux/windows-system.reg
inspector/example-windows.xml
inspector/virt-inspector.c
inspector/virt-inspector.rng
src/guestfs-internal.h
src/inspect.c