virDomainIsUpdated: define the new public API

introduce new public API "virDomainIsUpdated"

* src/conf/domain_conf.h (new member "updated" for "virDomainObj")
* src/libvirt_public.syms
* include/libvirt/libvirt.h.in
This commit is contained in:
Osier Yang 2010-11-15 11:23:32 +08:00 committed by Eric Blake
parent 2ed149a6d0
commit 347d73f211
3 changed files with 3 additions and 0 deletions

View File

@ -1931,6 +1931,7 @@ int virStreamFree(virStreamPtr st);
int virDomainIsActive(virDomainPtr dom);
int virDomainIsPersistent(virDomainPtr dom);
int virDomainIsUpdated(virDomainPtr dom);
int virNetworkIsActive(virNetworkPtr net);
int virNetworkIsPersistent(virNetworkPtr net);

View File

@ -1010,6 +1010,7 @@ struct _virDomainObj {
unsigned int autostart : 1;
unsigned int persistent : 1;
unsigned int updated : 1;
virDomainDefPtr def; /* The current definition */
virDomainDefPtr newDef; /* New definition to activate at shutdown */

View File

@ -416,6 +416,7 @@ LIBVIRT_0.8.5 {
LIBVIRT_0.8.6 {
global:
virDomainOpenConsole;
virDomainIsUpdated;
} LIBVIRT_0.8.5;
# .... define new API here using predicted next version number ....