From 347d73f21185c3902b5c0e12681199be520c6225 Mon Sep 17 00:00:00 2001 From: Osier Yang Date: Mon, 15 Nov 2010 11:23:32 +0800 Subject: [PATCH] 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 --- include/libvirt/libvirt.h.in | 1 + src/conf/domain_conf.h | 1 + src/libvirt_public.syms | 1 + 3 files changed, 3 insertions(+) diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in index 98c5281d6f..716f7af99b 100644 --- a/include/libvirt/libvirt.h.in +++ b/include/libvirt/libvirt.h.in @@ -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); diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index 10cbded60e..899b19f395 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -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 */ diff --git a/src/libvirt_public.syms b/src/libvirt_public.syms index 4ef4c5a2c6..96084ff95b 100644 --- a/src/libvirt_public.syms +++ b/src/libvirt_public.syms @@ -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 .... -- GitLab