qemu-e2k/slirp
aliguori 376253ece4 monitor: Rework API (Jan Kiszka)
Refactor the monitor API and prepare it for decoupled terminals:
term_print functions are renamed to monitor_* and all monitor services
gain a new parameter (mon) that will once refer to the monitor instance
the output is supposed to appear on. However, the argument remains
unused for now. All monitor command callbacks are also extended by a mon
parameter so that command handlers are able to pass an appropriate
reference to monitor output services.

For the case that monitor outputs so far happen without clearly
identifiable context, the global variable cur_mon is introduced that
shall once provide a pointer either to the current active monitor (while
processing commands) or to the default one. On the mid or long term,
those use case will be obsoleted so that this variable can be removed
again.

Due to the broad usage of the monitor interface, this patch mostly deals
with converting users of the monitor API. A few of them are already
extended to pass 'mon' from the command handler further down to internal
functions that invoke monitor_printf.

At this chance, monitor-related prototypes are moved from console.h to
a new monitor.h. The same is done for the readline API.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6711 c046a42c-6fe2-441c-8c8c-71466251a162
2009-03-05 23:01:23 +00:00
..
COPYRIGHT Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
bootp.c Use broadcast address for slirp dhcp replies 2009-01-24 18:16:18 +00:00
bootp.h 64 bit fixes (initial patch by Gwenole Beauchesne) 2005-06-05 17:11:42 +00:00
cksum.c Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
ctl.h initial user mode network support 2004-04-22 00:10:48 +00:00
debug.c Fix some warnings that would be generated by gcc -Wredundant-decls 2008-08-30 09:51:20 +00:00
debug.h Remove unnecessary trailing newlines 2008-12-13 09:32:43 +00:00
icmp_var.h Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
if.c Add some missing static qualifiers 2008-09-30 18:18:27 +00:00
if.h Add const etc. to places forgotten from the previous commit 2007-10-26 19:34:46 +00:00
ip.h Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
ip_icmp.c Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
ip_icmp.h Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
ip_input.c Fix SIGSEGV crash in slirp networking code 2009-02-06 21:37:40 +00:00
ip_output.c Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
libslirp.h Add slirp_restrict option (Gleb Natapov) 2009-01-08 19:24:00 +00:00
main.h Fix some SLIRP warnings 2009-01-12 17:51:06 +00:00
mbuf.c Remove unnecessary trailing newlines 2008-12-13 09:32:43 +00:00
mbuf.h Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
misc.c monitor: Rework API (Jan Kiszka) 2009-03-05 23:01:23 +00:00
misc.h Fix inline use warnings from sparse 2008-10-26 15:26:09 +00:00
sbuf.c Redirect slirp traffic to/from qemu character device (Gleb Natapov) 2009-01-08 19:18:21 +00:00
sbuf.h Use const and static as needed, disable unused code 2007-10-26 19:01:16 +00:00
slirp.c Fix 64 bit issue in slirp 2009-01-13 19:48:42 +00:00
slirp.h Fix _P use on OpenBSD 2009-01-14 18:04:52 +00:00
slirp_config.h Fix some warnings that would be generated by gcc -Wredundant-decls 2008-08-30 09:51:20 +00:00
socket.c Redirect slirp traffic to/from qemu character device (Gleb Natapov) 2009-01-08 19:18:21 +00:00
socket.h Redirect slirp traffic to/from qemu character device (Gleb Natapov) 2009-01-08 19:18:21 +00:00
tcp.h Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
tcp_input.c Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
tcp_output.c Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
tcp_subr.c Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
tcp_timer.c Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
tcp_timer.h Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
tcp_var.h Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
tcpip.h Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
tftp.c Suppress gcc 4.x -Wpointer-sign (included in -Wall) warnings 2008-09-20 08:07:15 +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 Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
udp.h Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00