[libvirt] [PATCH 1/8] virDomainGetState public API
Eric Blake
eblake at redhat.com
Wed May 4 16:45:33 UTC 2011
On 05/04/2011 08:45 AM, Jiri Denemark wrote:
> This API is supposed to replace virDomainGetInfo when the only purpose
> of calling it is getting current domain status.
> @@ -674,6 +726,9 @@ int virDomainCoreDump (virDomainPtr domain,
> */
> int virDomainGetInfo (virDomainPtr domain,
> virDomainInfoPtr info);
> +int virDomainGetState (virDomainPtr domain,
> + int *state,
> + int *reason);
Definitely add the unsigned int flags argument. I'm not sure yet
whether we want to pass a struct instead of two int* arguments; if
nothing else, a flag could let us treat the argument as a union of
different structs, and return a different struct of information
according to which flag was requested.
> +++ b/src/libvirt_public.syms
> @@ -436,4 +436,9 @@ LIBVIRT_0.9.0 {
> virStorageVolUpload;
> } LIBVIRT_0.8.8;
>
> +LIBVIRT_0.9.1 {
0.9.2
> + global:
> + virDomainGetState;
> +} LIBVIRT_0.9.0;
> +
> # .... define new API here using predicted next version number ....
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110504/fb477563/attachment-0001.sig>
More information about the libvir-list
mailing list