qemu/slirp
aliguori 03ff3ca30f Use common objects for qemu-img and qemu-nbd
Right now, we sprinkle #if defined(QEMU_IMG) && defined(QEMU_NBD) all over the
code.  It's ugly and causes us to have to build multiple object files for
linking against qemu and the tools.

This patch introduces a new file, qemu-tool.c which contains enough for
qemu-img, qemu-nbd, and QEMU to all share the same objects.

This also required getting qemu-nbd to be a bit more Windows friendly.  I also
changed the Windows block-raw to use normal IO instead of overlapping IO since
we don't actually do AIO yet on Windows.  I changed the various #if 0's to
 #if WIN32_AIO to make it easier for someone to eventually fix AIO on Windows.

After this patch, there are no longer any #ifdef's related to qemu-img and
qemu-nbd.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>



git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5226 c046a42c-6fe2-441c-8c8c-71466251a162
2008-09-15 15:51:35 +00:00
..
bootp.c Use const and static as needed, disable unused code 2007-10-26 19:01:16 +00:00
bootp.h
cksum.c find -type f | xargs sed -i 's/[\t ]*$//g' # Yes, again. Note the star in the regex. 2007-09-17 08:09:54 +00:00
COPYRIGHT find -type f | xargs sed -i 's/[\t ]$//g' # on most files 2007-09-16 21:08:06 +00:00
ctl.h
debug.c Fix some warnings that would be generated by gcc -Wredundant-decls 2008-08-30 09:51:20 +00:00
debug.h Make Slirp statistics gathering and output conditional to LOG_ENABLED 2007-10-26 18:42:59 +00:00
icmp_var.h Make Slirp statistics gathering and output conditional to LOG_ENABLED 2007-10-26 18:42:59 +00:00
if.c Fix warnings that would be generated by gcc -Wstrict-prototypes 2008-08-17 20:21:51 +00:00
if.h Add const etc. to places forgotten from the previous commit 2007-10-26 19:34:46 +00:00
ip_icmp.c Fix warnings that would be caused by gcc flag -Wwrite-strings 2008-09-14 06:45:34 +00:00
ip_icmp.h Fix warnings that would be caused by gcc flag -Wwrite-strings 2008-09-14 06:45:34 +00:00
ip_input.c Use const and static as needed, disable unused code 2007-10-26 19:01:16 +00:00
ip_output.c Add const etc. to places forgotten from the previous commit 2007-10-26 19:34:46 +00:00
ip.h Use const and static as needed, disable unused code 2007-10-26 19:01:16 +00:00
libslirp.h Make Slirp statistics gathering and output conditional to LOG_ENABLED 2007-10-26 18:42:59 +00:00
main.h Use const and static as needed, disable unused code 2007-10-26 19:01:16 +00:00
mbuf.c Fix some warnings that would be generated by gcc -Wredundant-decls 2008-08-30 09:51:20 +00:00
mbuf.h Use const and static as needed, disable unused code 2007-10-26 19:01:16 +00:00
misc.c Use common objects for qemu-img and qemu-nbd 2008-09-15 15:51:35 +00:00
misc.h Fix some warnings that would be generated by gcc -Wredundant-decls 2008-08-30 09:51:20 +00:00
sbuf.c Use const and static as needed, disable unused code 2007-10-26 19:01:16 +00:00
sbuf.h Use const and static as needed, disable unused code 2007-10-26 19:01:16 +00:00
slirp_config.h Fix some warnings that would be generated by gcc -Wredundant-decls 2008-08-30 09:51:20 +00:00
slirp.c Fix OpenBSD linker warnings 2008-08-21 17:58:08 +00:00
slirp.h Fix most warnings that would be caused by gcc flag -Wundef 2008-09-06 17:47:39 +00:00
socket.c Fix some warnings that would be generated by gcc -Wredundant-decls 2008-08-30 09:51:20 +00:00
socket.h Use const and static as needed, disable unused code 2007-10-26 19:01:16 +00:00
tcp_input.c Use const and static as needed, disable unused code 2007-10-26 19:01:16 +00:00
tcp_output.c Use const and static as needed, disable unused code 2007-10-26 19:01:16 +00:00
tcp_subr.c Fix OpenBSD linker warnings 2008-08-21 17:58:08 +00:00
tcp_timer.c Use const and static as needed, disable unused code 2007-10-26 19:01:16 +00:00
tcp_timer.h Use const and static as needed, disable unused code 2007-10-26 19:01:16 +00:00
tcp_var.h Make Slirp statistics gathering and output conditional to LOG_ENABLED 2007-10-26 18:42:59 +00:00
tcp.h Use const and static as needed, disable unused code 2007-10-26 19:01:16 +00:00
tcpip.h
tftp.c Fix OpenBSD linker warnings 2008-08-21 17:58:08 +00:00
tftp.h find -type f | xargs sed -i 's/[\t ]$//g' # on most files 2007-09-16 21:08:06 +00:00
udp.c Special-case CTL_ALIAS instead of CTL_DNS in udp loopback test. 2008-05-10 01:49:53 +00:00
udp.h Use const and static as needed, disable unused code 2007-10-26 19:01:16 +00:00