[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] glib: add a compatibility interface for g_timeo
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH] glib: add a compatibility interface for g_timeout_add_seconds |
Date: |
Mon, 25 Mar 2013 15:47:36 +0000 |
On 25 March 2013 15:24, Anthony Liguori <address@hidden> wrote:
> Signed-off-by: Anthony Liguori <address@hidden>
> +#if !GLIB_CHECK_VERSION(2, 14, 0)
> +static inline guint g_timeout_add_seconds(guint interval, GSourceFunc
> function,
> + gpointer data)
> +{
> + return g_timeout_add(interval * 1000, function, data);
> +}
> +#endif
Wow, the function names for these are horrible. I would never
have guessed that g_timeout_add_seconds() had different
semantics from g_timeout_add() except that I just double
checked the documentation because the usage in qemu-char.c
looked so totally weird.
-- PMM