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>
This commit is contained in:
Marc-André Lureau 2022-03-23 19:57:35 +04:00 committed by Paolo Bonzini
parent ec5f7ca857
commit 16a18f2681
4 changed files with 10 additions and 5 deletions

View File

@ -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 */

View File

@ -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 */

View File

@ -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"

View File

@ -23,7 +23,7 @@
*/
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/qemu-progress.h"
struct progress_state {
float current;