Searched hist:"315409 c7115b9f6b1b027899c214f4a1f706a7c5" (Results 1 – 2 of 2) sorted by relevance
/qemu/io/ |
H A D | channel.c | 315409c7115b9f6b1b027899c214f4a1f706a7c5 Mon Mar 05 06:43:20 UTC 2018 Peter Xu <peterx@redhat.com> qio: introduce qio_channel_add_watch_{full|source}
Firstly, introduce an internal qio_channel_add_watch_full(), which enhances qio_channel_add_watch() that context can be specified.
Then add a new API wrapper qio_channel_add_watch_source() to return a GSource pointer rather than a tag ID.
Note that the _source() call will keep a reference of GSource so that callers need to unref them explicitly when finished using the GSource.
Signed-off-by: Peter Xu <peterx@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
|
/qemu/include/io/ |
H A D | channel.h | 315409c7115b9f6b1b027899c214f4a1f706a7c5 Mon Mar 05 06:43:20 UTC 2018 Peter Xu <peterx@redhat.com> qio: introduce qio_channel_add_watch_{full|source}
Firstly, introduce an internal qio_channel_add_watch_full(), which enhances qio_channel_add_watch() that context can be specified.
Then add a new API wrapper qio_channel_add_watch_source() to return a GSource pointer rather than a tag ID.
Note that the _source() call will keep a reference of GSource so that callers need to unref them explicitly when finished using the GSource.
Signed-off-by: Peter Xu <peterx@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
|