diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-03-08 15:04:51 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2019-03-12 22:31:21 -0400 |
commit | 922ef483ec812730f87102b372691c510313fcea (patch) | |
tree | 5c6046c79d5ea73da4aa0370a14c83cace831e00 /contrib/libvhost-user/libvhost-user-glib.h | |
parent | 9af84c02e2321e7e73234940cba9ce521dfc9423 (diff) | |
download | qemu-922ef483ec812730f87102b372691c510313fcea.zip qemu-922ef483ec812730f87102b372691c510313fcea.tar.gz qemu-922ef483ec812730f87102b372691c510313fcea.tar.bz2 |
libvhost-user-glib: export vug_source_new()
Simplify the creation of FD sources for other users. This is just
convenience to avoid duplicating similar code elsewhere.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20190308140454.32437-10-marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'contrib/libvhost-user/libvhost-user-glib.h')
-rw-r--r-- | contrib/libvhost-user/libvhost-user-glib.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/libvhost-user/libvhost-user-glib.h b/contrib/libvhost-user/libvhost-user-glib.h index 6b2110b..d3200f3 100644 --- a/contrib/libvhost-user/libvhost-user-glib.h +++ b/contrib/libvhost-user/libvhost-user-glib.h @@ -29,4 +29,7 @@ void vug_init(VugDev *dev, int socket, vu_panic_cb panic, const VuDevIface *iface); void vug_deinit(VugDev *dev); +GSource *vug_source_new(VugDev *dev, int fd, GIOCondition cond, + vu_watch_cb vu_cb, gpointer data); + #endif /* LIBVHOST_USER_GLIB_H */ |