aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2022-03-23 19:57:29 +0400
committerPaolo Bonzini <pbonzini@redhat.com>2022-04-06 14:31:43 +0200
commit3bd04c091eb1cf2e01cd59e4e232b6b3bbdba15c (patch)
tree6aa8b3f55d0ed1ebe52ee9d0c7452e929119d7c2 /include
parent0d14a2f30043665f40c11f78b5a1fb80bdc6568a (diff)
include: move qemu_pipe() to osdep.h
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20220323155743.1585078-19-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/qemu-common.h4
-rw-r--r--include/qemu/osdep.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/qemu-common.h b/include/qemu-common.h
index c6f3ed94bc..2e1e76014a 100644
--- a/include/qemu-common.h
+++ b/include/qemu-common.h
@@ -24,10 +24,6 @@
int qemu_main(int argc, char **argv, char **envp);
#endif
-#ifndef _WIN32
-int qemu_pipe(int pipefd[2]);
-#endif
-
void cpu_exec_init_all(void);
void cpu_exec_step_atomic(CPUState *cpu);
diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h
index 259436ff53..a733294710 100644
--- a/include/qemu/osdep.h
+++ b/include/qemu/osdep.h
@@ -530,6 +530,10 @@ static inline void qemu_timersub(const struct timeval *val1,
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
+
void qemu_set_cloexec(int fd);
void fips_set_state(bool requested);