include: move qemu_write_full() declaration to osdep.h
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 23 Mar 2022 15:57:28 +0000 (19:57 +0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 6 Apr 2022 12:31:43 +0000 (14:31 +0200)
Closer to other IO functions.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20220323155743.1585078-18-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/qemu-common.h
include/qemu/osdep.h

index db8b03be51f3a776fab9051997e67b7fa8b92b28..c6f3ed94bc7ebad07ad5d0736c7e779ec5390633 100644 (file)
@@ -24,9 +24,6 @@
 int qemu_main(int argc, char **argv, char **envp);
 #endif
 
-ssize_t qemu_write_full(int fd, const void *buf, size_t count)
-    G_GNUC_WARN_UNUSED_RESULT;
-
 #ifndef _WIN32
 int qemu_pipe(int pipefd[2]);
 #endif
index 489a5d1aad5f4fa807dac84ebfcf0988c796e291..259436ff5371808cdb5adfa4f1952ac9a6a743d5 100644 (file)
@@ -527,6 +527,9 @@ static inline void qemu_timersub(const struct timeval *val1,
 #define qemu_timersub timersub
 #endif
 
+ssize_t qemu_write_full(int fd, const void *buf, size_t count)
+    G_GNUC_WARN_UNUSED_RESULT;
+
 void qemu_set_cloexec(int fd);
 
 void fips_set_state(bool requested);