monitor: Extract monitor-system.h header

This header will allow to split monitor in two parts.

Signed-off-by: Benoit Canet <benoit@irqsave.net>
monitor: Make monitor_fprintf public before extracting it

Signed-off-by: Benoit Canet <benoit@irqsave.net>
monitor: Extract monitor_fprintf to monitor-system.c

Signed-off-by: Benoit Canet <benoit@irqsave.net>
monitor: Extract qmp_human_monitor_command into monitor-system.c

Reviewed-by: Benoit Canet <benoit@irqsave.net>
monitor: Make some function to extract public

The functions made public are: help_cmd, do_help_cmd, do_trace_event_set_state
and do_trace_file.

Put the header declaration in monitor/monitor-system.h directly to avoid a
type conflict.

Signed-off-by: Benoit Canet <benoit@irqsave.net>
monitor: Extract a couple of function to monitor-system.c

The extracted function are help_cmd, do_help_cmd, do_trace_event_set_state,
and do_trace_file.

Signed-off-by: Benoit Canet <benoit@irqsave.net>
monitor: Make do_info_help public

Signed-off-by: Benoit Canet <benoit@irqsave.net>
monitor: Extract do_info_help in monitor-system.c

Signed-off-by: Benoit Canet <benoit@irqsave.net>
monitor: Make some monitor functions public before moving them in monitor-system.c

This will allow monitor.c to access these functions once they are moved in
monitor-system.c

Signed-off-by: Benoit Canet <benoit@irqsave.net>
monitor: Move some system related functions from monitor.c to monitor-system.c

Signed-off-by: Benoit Canet <benoit@irqsave.net>
monitor: Make do_loadvm public before moving it to monitor-system.c

Signed-off-by: Benoit Canet <benoit@irqsave.net>
monitor: Move do_loadvm from monitor.c to monitor-system.c

Signed-off-by: Benoit Canet <benoit@irqsave.net>
monitor: Make commands public before moving them to monitor-system.c

Signed-off-by: Benoit Canet <benoit@irqsave.net>
monitor: Move mon_cmd_t arrays and some function from monitor.c to monitor-system.c

Also add sizeof variables for mon_cmd_t arrays for cross modules usage.

Signed-off-by: Benoit Canet <benoit@irqsave.net>
monitor: Move more functions from monitor.c to monitor-system.c

Signed-off-by: Benoit Canet <benoit@irqsave.net>
monitor: Move two net functions from monitor.c to monitor-system.c

With this move the monitor.c/monitor-system.c split is complete.

Signed-off-by: Benoit Canet <benoit@irqsave.net>
monitor-system: Switch back functions to static

The move from monitor.c to monitor-system.c is done these functions no longer
needs to be public.

Signed-off-by: Benoit Canet <benoit@irqsave.net>
qemu-nbd: build QAPI block core into qemu-nbd

Compile and link QAPI block core code into qemu-nbd.

This patch circle around unwanted dependecies by stubing some functions in
the stubs directory.

Signed-off-by: Benoit Canet <benoit@irqsave.net>