[Libosinfo] [PATCH v2 1/5] Use GTask instead of GSimpleAsyncResult

Christophe Fergeau cfergeau at redhat.com
Fri Jan 8 09:38:35 UTC 2016


On Thu, Jan 07, 2016 at 06:54:37PM +0100, Fabiano Fidêncio wrote:
> Instead of using GSimpleAsyncResult, use the new GTask API, which is
> much more straightforward.
> For using the new GTask API, let's bump GLib depency version to 2.36,
> what is safe based on major distro support:
> - Debian Jessie: glib-2.42
> - RHEL-7.1: glib-2.40
> - SLES12: glib-2.38
> - Ubuntu LTS 14.04: glib-2.40
> ---
>  configure.ac                   |  1 +
>  osinfo/osinfo_install_script.c | 52 ++++++++++++++----------------------
>  osinfo/osinfo_media.c          | 60 +++++++++++++++++-------------------------
>  osinfo/osinfo_tree.c           | 34 +++++++++---------------
>  4 files changed, 57 insertions(+), 90 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index 4154134..ff3eed3 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -38,6 +38,7 @@ m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
>  
>  PKG_CHECK_MODULES([GOBJECT], [gobject-2.0])
>  PKG_CHECK_MODULES([GIO], [gio-2.0])
> +PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.36])

Strictly speaking, it is gio-2.0 >= 2.36 that we want as GTask is in
gio/gtask.h , but this is not going to make a difference anyway...

ACK.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libosinfo/attachments/20160108/e603bc43/attachment.sig>


More information about the Libosinfo mailing list