On 25 March 2013 15:24, Anthony Liguori <aligu...@us.ibm.com> wrote: > Signed-off-by: Anthony Liguori <aligu...@us.ibm.com> > +#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