diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-08-08 19:03:24 +0400 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2019-08-14 17:33:14 +0100 |
commit | 3170a6453bc8bf03adcaebbf52f9fe8328d0687b (patch) | |
tree | 759b5b7c5cd4e7ed7ca8f0b76a81f851a11a75b6 /include/migration | |
parent | 1ce542620ada7e905a253c99b9acac279f245bae (diff) | |
download | qemu-3170a6453bc8bf03adcaebbf52f9fe8328d0687b.zip qemu-3170a6453bc8bf03adcaebbf52f9fe8328d0687b.tar.gz qemu-3170a6453bc8bf03adcaebbf52f9fe8328d0687b.tar.bz2 |
qemu-file: move qemu_{get,put}_counted_string() declarations
Move migration helpers for strings under include/, so they can be used
outside of migration/
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Message-Id: <20190808150325.21939-2-marcandre.lureau@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'include/migration')
-rw-r--r-- | include/migration/qemu-file-types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/migration/qemu-file-types.h b/include/migration/qemu-file-types.h index c0a1988..2867e3d 100644 --- a/include/migration/qemu-file-types.h +++ b/include/migration/qemu-file-types.h @@ -161,6 +161,10 @@ static inline void qemu_get_sbe64s(QEMUFile *f, int64_t *pv) qemu_get_be64s(f, (uint64_t *)pv); } +size_t qemu_get_counted_string(QEMUFile *f, char buf[256]); + +void qemu_put_counted_string(QEMUFile *f, const char *name); + int qemu_file_rate_limit(QEMUFile *f); #endif |