diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-02-06 18:43:26 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-02-13 16:46:39 +0100 |
commit | 64c3f266dd14d62886b4a51f6bfce49ac14620fa (patch) | |
tree | 12caa9e1d5fc1d4262f5ab5949d728379284c4ec /include/chardev | |
parent | b1f1103dbabb5f47c3fc7081d8b7edeca1fdf334 (diff) |
chardev: add a note about frontend sources and context switch
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20190206174328.9736-5-marcandre.lureau@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/chardev')
-rw-r--r-- | include/chardev/char-fe.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/chardev/char-fe.h b/include/chardev/char-fe.h index c1b7fd9a95..aa1b864ccd 100644 --- a/include/chardev/char-fe.h +++ b/include/chardev/char-fe.h @@ -184,6 +184,9 @@ void qemu_chr_fe_printf(CharBackend *be, const char *fmt, ...) * is active; return the #GSource's tag. If it is disconnected, * or without associated Chardev, return 0. * + * Note that you are responsible to update the front-end sources if + * you are switching the main context with qemu_chr_fe_set_handlers(). + * * Returns: the source tag */ guint qemu_chr_fe_add_watch(CharBackend *be, GIOCondition cond, |