diff options
| author | Nikolay Borisov <nborisov@suse.com> | 2024-02-29 12:29:56 -0300 |
|---|---|---|
| committer | Peter Xu <peterx@redhat.com> | 2024-03-01 15:42:04 +0800 |
| commit | 401e311ff72e0a62c834bfe466de68a82cfd90cb (patch) | |
| tree | 9a043d67e1b8f4a384008d15783ca38b4a7375c8 /include | |
| parent | 4aac6b1e9bd48677c4f24518fe86ffd34c677d5a (diff) | |
| download | focaccia-qemu-401e311ff72e0a62c834bfe466de68a82cfd90cb.tar.gz focaccia-qemu-401e311ff72e0a62c834bfe466de68a82cfd90cb.zip | |
io: add and implement QIO_CHANNEL_FEATURE_SEEKABLE for channel file
Add a generic QIOChannel feature SEEKABLE which would be used by the qemu_file* apis. For the time being this will be only implemented for file channels. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: "Daniel P. Berrangé" <berrange@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: Fabiano Rosas <farosas@suse.de> Link: https://lore.kernel.org/r/20240229153017.2221-3-farosas@suse.de Signed-off-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/io/channel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/io/channel.h b/include/io/channel.h index 5f9dbaab65..fcb19fd672 100644 --- a/include/io/channel.h +++ b/include/io/channel.h @@ -44,6 +44,7 @@ enum QIOChannelFeature { QIO_CHANNEL_FEATURE_LISTEN, QIO_CHANNEL_FEATURE_WRITE_ZERO_COPY, QIO_CHANNEL_FEATURE_READ_MSG_PEEK, + QIO_CHANNEL_FEATURE_SEEKABLE, }; |