Re: [libvirt-glib 1/2] Add async variant of gvir_domain_resume()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 30, 2012 at 06:30:27PM +0200, Zeeshan Ali (Khattak) wrote:
> From: "Zeeshan Ali (Khattak)" <zeeshanak@xxxxxxxxx>
> 
> ---
>  libvirt-gobject/libvirt-gobject-domain.c | 56 ++++++++++++++++++++++++++++++++
>  libvirt-gobject/libvirt-gobject-domain.h |  7 ++++
>  libvirt-gobject/libvirt-gobject.sym      |  2 ++
>  3 files changed, 65 insertions(+)
> 
> diff --git a/libvirt-gobject/libvirt-gobject-domain.c b/libvirt-gobject/libvirt-gobject-domain.c
> index 861f713..d6d804d 100644
> --- a/libvirt-gobject/libvirt-gobject-domain.c
> +++ b/libvirt-gobject/libvirt-gobject-domain.c
> @@ -446,6 +446,62 @@ gboolean gvir_domain_resume(GVirDomain *dom,
>      return TRUE;
>  }
>  
> +static void
> +gvir_domain_resume_helper(GSimpleAsyncResult *res,
> +                          GObject *object,
> +                          GCancellable *cancellable G_GNUC_UNUSED)
> +{
> +    GVirDomain *dom = GVIR_DOMAIN(object);
> +    GError *err = NULL;
> +
> +    if (!gvir_domain_resume(dom, &err))
> +        g_simple_async_result_take_error(res, err);
> +}
> +
> +/**
> + * gvir_domain_resume_async:
> + * @dom: the domain

Maybe "the domain to resume"

ACK.

Christophe

Attachment: pgp6RVFOrmCHQ.pgp
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]