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:
parent
ec5f7ca857
commit
16a18f2681
@ -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 */
|
||||
|
8
include/qemu/qemu-progress.h
Normal file
8
include/qemu/qemu-progress.h
Normal 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 */
|
@ -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"
|
||||
|
@ -23,7 +23,7 @@
|
||||
*/
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "qemu-common.h"
|
||||
#include "qemu/qemu-progress.h"
|
||||
|
||||
struct progress_state {
|
||||
float current;
|
||||
|
Loading…
Reference in New Issue
Block a user