[libvirt] [PATCH 12/34] Create virDomainEventRTCChange to get rid of the huge union
Daniel P. Berrange
berrange at redhat.com
Fri Nov 29 17:11:45 UTC 2013
On Fri, Nov 29, 2013 at 04:18:48PM +0100, Cédric Bosdonnat wrote:
> ---
> src/conf/domain_event.c | 53 +++++++++++++++++++++++++++++++++++--------------
> src/conf/domain_event.h | 4 ++--
> 2 files changed, 40 insertions(+), 17 deletions(-)
> diff --git a/src/conf/domain_event.h b/src/conf/domain_event.h
> index 2349b54..7c16a48 100644
> --- a/src/conf/domain_event.h
> +++ b/src/conf/domain_event.h
> @@ -69,8 +69,8 @@ virDomainEventPtr virDomainEventRebootNew(int id, const char *name, const unsign
> virDomainEventPtr virDomainEventRebootNewFromDom(virDomainPtr dom);
> virDomainEventPtr virDomainEventRebootNewFromObj(virDomainObjPtr obj);
>
> -virDomainEventPtr virDomainEventRTCChangeNewFromDom(virDomainPtr dom, long long offset);
> -virDomainEventPtr virDomainEventRTCChangeNewFromObj(virDomainObjPtr obj, long long offset);
> +void *virDomainEventRTCChangeNewFromDom(virDomainPtr dom, long long offset);
> +void *virDomainEventRTCChangeNewFromObj(virDomainObjPtr obj, long long offset);
Same point about returning virObjectEventPtr here as with earlier patch. I
won't repeat it for the remainder of this series - just update them all to
match.
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the libvir-list
mailing list