From patchwork Thu Nov 15 03:06:43 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [07/11] osdep: Move qemu_{open, close}() prototypes Date: Wed, 14 Nov 2012 17:06:43 -0000 From: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 199124 Message-Id: <1352948807-30415-8-git-send-email-afaerber@suse.de> To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Andreas=20F=C3=A4rber?= , anthony@codemonkey.ws They are implemented in osdep.c, so keep the prototypes in osdep.h. Suggested-by: Igor Mammedov Signed-off-by: Andreas Färber Acked-by: Eduardo Habkost --- osdep.h | 3 +++ qemu-common.h | 2 -- 2 Dateien geändert, 3 Zeilen hinzugefügt(+), 2 Zeilen entfernt(-) diff --git a/osdep.h b/osdep.h index 585e2c1..87d3b9c 100644 --- a/osdep.h +++ b/osdep.h @@ -136,6 +136,9 @@ void qemu_vfree(void *ptr); int qemu_madvise(void *addr, size_t len, int advice); +int qemu_open(const char *name, int flags, ...); +int qemu_close(int fd); + #if defined(__HAIKU__) && defined(__i386__) #define FMT_pid "%ld" #elif defined(WIN64) diff --git a/qemu-common.h b/qemu-common.h index 9112e2d..cef264c 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -217,8 +217,6 @@ const char *path(const char *pathname); void *qemu_oom_check(void *ptr); -int qemu_open(const char *name, int flags, ...); -int qemu_close(int fd); ssize_t qemu_write_full(int fd, const void *buf, size_t count) QEMU_WARN_UNUSED_RESULT; ssize_t qemu_send_full(int fd, const void *buf, size_t count, int flags)