Skip to content

Commit

Permalink
include: move progress API to qemu-progress.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
elmarco authored and bonzini committed Apr 3, 2022
1 parent a3b4d0c commit 9f5e12c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
4 changes: 0 additions & 4 deletions include/qemu-common.h
Expand Up @@ -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 */
Expand Down
8 changes: 8 additions & 0 deletions 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 */
1 change: 1 addition & 0 deletions qemu-img.c
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion util/qemu-progress.c
Expand Up @@ -23,7 +23,7 @@
*/

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/qemu-progress.h"

struct progress_state {
float current;
Expand Down

0 comments on commit 9f5e12c

Please sign in to comment.