[libvirt] [libvirt-glib 1/2] Add async variant of gvir_domain_resume()
Christophe Fergeau
cfergeau at redhat.com
Thu Aug 2 12:07:35 UTC 2012
On Mon, Jul 30, 2012 at 06:30:27PM +0200, Zeeshan Ali (Khattak) wrote:
> From: "Zeeshan Ali (Khattak)" <zeeshanak at gnome.org>
>
> ---
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120802/b044b5fa/attachment-0001.sig>
More information about the libvir-list
mailing list