virtio-net: only delete bh that existed
[qemu/kevin.git] / include / glib-compat.h
blob8aa77afd6266c14e146113d8a0cb0ae06e808c21
1 /*
2 * GLIB Compatibility Functions
4 * Copyright IBM, Corp. 2013
6 * Authors:
7 * Anthony Liguori <aliguori@us.ibm.com>
9 * This work is licensed under the terms of the GNU GPL, version 2 or later.
10 * See the COPYING file in the top-level directory.
14 #ifndef QEMU_GLIB_COMPAT_H
15 #define QEMU_GLIB_COMPAT_H
17 #include <glib.h>
19 #if !GLIB_CHECK_VERSION(2, 14, 0)
20 static inline guint g_timeout_add_seconds(guint interval, GSourceFunc function,
21 gpointer data)
23 return g_timeout_add(interval * 1000, function, data);
25 #endif
27 #endif