Skip to contentSkip to conversation

osdep: Move qemu_{open,close}() prototypes

PATCH In review Andreas Färber 2 participants 2 messages Nov 14, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 osdep: Move qemu_{open,close}() prototypes

They are implemented in osdep.c, so keep the prototypes in osdep.h.

---
 osdep.h       |    3 +++
 qemu-common.h |    2 --

2 Dateien geändert, 3 Zeilen hinzugefügt(+), 2 Zeilen entfernt(-)

osdep.h +3 -0
index 585e2c1..87d3b9c 100644
@@ -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)
qemu-common.h +0 -2
index 9112e2d..cef264c 100644
@@ -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)
Signature · 1 line
1.7.10.4
Acked-by on v1 1/1
#1 lore raw

Re: [Qemu-devel] [PATCH] osdep: Move qemu_{open, close}() prototypes

Quoted 5 lines · Andreas Färber

They are implemented in osdep.c, so keep the prototypes in osdep.h.

Quoted 35 lines
---
 osdep.h       |    3 +++
 qemu-common.h |    2 --

2 Dateien geändert, 3 Zeilen hinzugefügt(+), 2 Zeilen entfernt(-)

osdep.h +3 -0
index 585e2c1..87d3b9c 100644
@@ -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)
qemu-common.h +0 -2
index 9112e2d..cef264c 100644
@@ -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)
Signature · 1 line
1.7.10.4
Signature · 1 line
Eduardo