Commit 05f28b83 authored by Paolo Bonzini's avatar Paolo Bonzini Committed by Juan Quintela
Browse files

qemu-file: make qemu_fflush and qemu_file_set_error private again


Reviewed-by: default avatarOrit Wasserman <owasserm@redhat.com>
Reviewed-by: default avatarJuan Quintela <quintela@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
parent 5f496a1b
...@@ -82,7 +82,6 @@ QEMUFile *qemu_popen_cmd(const char *command, const char *mode); ...@@ -82,7 +82,6 @@ QEMUFile *qemu_popen_cmd(const char *command, const char *mode);
int qemu_get_fd(QEMUFile *f); int qemu_get_fd(QEMUFile *f);
int qemu_fclose(QEMUFile *f); int qemu_fclose(QEMUFile *f);
int64_t qemu_ftell(QEMUFile *f); int64_t qemu_ftell(QEMUFile *f);
void qemu_fflush(QEMUFile *f);
void qemu_put_buffer(QEMUFile *f, const uint8_t *buf, int size); void qemu_put_buffer(QEMUFile *f, const uint8_t *buf, int size);
void qemu_put_byte(QEMUFile *f, int v); void qemu_put_byte(QEMUFile *f, int v);
...@@ -114,7 +113,6 @@ int qemu_file_rate_limit(QEMUFile *f); ...@@ -114,7 +113,6 @@ int qemu_file_rate_limit(QEMUFile *f);
int64_t qemu_file_set_rate_limit(QEMUFile *f, int64_t new_rate); int64_t qemu_file_set_rate_limit(QEMUFile *f, int64_t new_rate);
int64_t qemu_file_get_rate_limit(QEMUFile *f); int64_t qemu_file_get_rate_limit(QEMUFile *f);
int qemu_file_get_error(QEMUFile *f); int qemu_file_get_error(QEMUFile *f);
void qemu_file_set_error(QEMUFile *f, int ret);
static inline void qemu_put_be64s(QEMUFile *f, const uint64_t *pv) static inline void qemu_put_be64s(QEMUFile *f, const uint64_t *pv)
{ {
......
...@@ -443,7 +443,7 @@ int qemu_file_get_error(QEMUFile *f) ...@@ -443,7 +443,7 @@ int qemu_file_get_error(QEMUFile *f)
return f->last_error; return f->last_error;
} }
void qemu_file_set_error(QEMUFile *f, int ret) static void qemu_file_set_error(QEMUFile *f, int ret)
{ {
if (f->last_error == 0) { if (f->last_error == 0) {
f->last_error = ret; f->last_error = ret;
...@@ -453,7 +453,7 @@ void qemu_file_set_error(QEMUFile *f, int ret) ...@@ -453,7 +453,7 @@ void qemu_file_set_error(QEMUFile *f, int ret)
/** Flushes QEMUFile buffer /** Flushes QEMUFile buffer
* *
*/ */
void qemu_fflush(QEMUFile *f) static void qemu_fflush(QEMUFile *f)
{ {
int ret = 0; int ret = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment