virDomainReboot takes a flag argument which is documented as:
* @flags: extra flags for the reboot operation, not used yet
In fact, the test driver (alone) allows a virDomainRestart typedef to be
passed as a flag, although it's not clear to me that anything actually
does pass it. Certainly removing virDomainRestart typedef from
<libvirt.h> doesn't break the build, and 'make check' is also OK.
The attached patch moves virDomainRestart typedef into the test driver,
which is the only thing using it. Another possibility would be to go
further and remove the parts of the test driver which "test" this
undocumented feature.
(Thanks to Tóth István for pointing out that this typedef is unused).
Rich.
--
Emerging Technologies, Red Hat -
http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in
England and Wales under Company Registration No. 03798903