diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-03-23 19:57:35 +0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-04-06 14:31:43 +0200 |
commit | 16a18f26818c783fed153f7a8fb4a9afdfb547ac (patch) | |
tree | 6e5312d718ac6acfc5e61c763dc6530a12923ca4 | |
parent | ec5f7ca857a396ae23ce01a8f84fbae12bdce0f4 (diff) | |
download | qemu-16a18f26818c783fed153f7a8fb4a9afdfb547ac.zip qemu-16a18f26818c783fed153f7a8fb4a9afdfb547ac.tar.gz qemu-16a18f26818c783fed153f7a8fb4a9afdfb547ac.tar.bz2 |
include: move progress API to qemu-progress.h
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20220323155743.1585078-25-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | include/qemu-common.h | 4 | ||||
-rw-r--r-- | include/qemu/qemu-progress.h | 8 | ||||
-rw-r--r-- | qemu-img.c | 1 | ||||
-rw-r--r-- | util/qemu-progress.c | 2 |
4 files changed, 10 insertions, 5 deletions
diff --git a/include/qemu-common.h b/include/qemu-common.h index bc73dae..fee2181 100644 --- a/include/qemu-common.h +++ b/include/qemu-common.h @@ -24,10 +24,6 @@ int qemu_main(int argc, char **argv, char **envp); #endif - -void qemu_progress_init(int enabled, float min_skip); -void qemu_progress_end(void); -void qemu_progress_print(float delta, int max); const char *qemu_get_vm_name(void); /* OS specific functions */ diff --git a/include/qemu/qemu-progress.h b/include/qemu/qemu-progress.h new file mode 100644 index 0000000..137e1c3 --- /dev/null +++ b/include/qemu/qemu-progress.h @@ -0,0 +1,8 @@ +#ifndef QEMU_PROGRESS_H +#define QEMU_PROGRESS_H + +void qemu_progress_init(int enabled, float min_skip); +void qemu_progress_end(void); +void qemu_progress_print(float delta, int max); + +#endif /* QEMU_PROGRESS_H */ @@ -26,6 +26,7 @@ #include <getopt.h> #include "qemu-common.h" +#include "qemu/qemu-progress.h" #include "qemu-version.h" #include "qapi/error.h" #include "qapi/qapi-commands-block-core.h" diff --git a/util/qemu-progress.c b/util/qemu-progress.c index 20d51f8..aa99466 100644 --- a/util/qemu-progress.c +++ b/util/qemu-progress.c @@ -23,7 +23,7 @@ */ #include "qemu/osdep.h" -#include "qemu-common.h" +#include "qemu/qemu-progress.h" struct progress_state { float current; |