Forráskód Böngészése

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>
Marc-André Lureau 3 éve
szülő
commit
16a18f2681
4 módosított fájl, 10 hozzáadás és 5 törlés
  1. 0 4
      include/qemu-common.h
  2. 8 0
      include/qemu/qemu-progress.h
  3. 1 0
      qemu-img.c
  4. 1 1
      util/qemu-progress.c

+ 0 - 4
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 */

+ 8 - 0
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 - 0
qemu-img.c

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

+ 1 - 1
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;