aboutsummaryrefslogtreecommitdiff
path: root/include/glib-compat.h
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2016-09-30 11:57:14 +0100
committerDaniel P. Berrange <berrange@redhat.com>2016-10-27 09:13:10 +0200
commite93a68e102ffc8f8316ce24a57f094734dc4d8f7 (patch)
treeb9734ee97eceb16d97e12a1ae7f1bd52b9144a60 /include/glib-compat.h
parent0d73f7253e4837603dbcbb7af0706d4d57124b5e (diff)
downloadqemu-e93a68e102ffc8f8316ce24a57f094734dc4d8f7.zip
qemu-e93a68e102ffc8f8316ce24a57f094734dc4d8f7.tar.gz
qemu-e93a68e102ffc8f8316ce24a57f094734dc4d8f7.tar.bz2
char: set name for all I/O channels created
Ensure that all I/O channels created for character devices are given names to distinguish their respective roles. Acked-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'include/glib-compat.h')
-rw-r--r--include/glib-compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/glib-compat.h b/include/glib-compat.h
index 9dfe952..3f8370b 100644
--- a/include/glib-compat.h
+++ b/include/glib-compat.h
@@ -309,6 +309,10 @@ static inline void g_source_set_name(GSource *source, const char *name)
{
/* This is just a debugging aid, so leaving it a no-op */
}
+static inline void g_source_set_name_by_id(guint tag, const char *name)
+{
+ /* This is just a debugging aid, so leaving it a no-op */
+}
#endif
#endif