diff options
| author | Peter Xu | 2018-03-05 07:43:20 +0100 |
|---|---|---|
| committer | Daniel P. Berrangé | 2018-03-06 11:19:04 +0100 |
| commit | 315409c7115b9f6b1b027899c214f4a1f706a7c5 (patch) | |
| tree | 15a082834c690ebaf7d10a58ddcad8d34716c3d2 /scripts/switch-timer-api | |
| parent | qio: rename qio_task_thread_result (diff) | |
| download | qemu-315409c7115b9f6b1b027899c214f4a1f706a7c5.tar.gz qemu-315409c7115b9f6b1b027899c214f4a1f706a7c5.tar.xz qemu-315409c7115b9f6b1b027899c214f4a1f706a7c5.zip | |
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>
Diffstat (limited to 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions
