From f18c16de4a321f1dda01dc7eae8f0aca86900e32 Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Fri, 28 Aug 2009 15:27:14 -0300 Subject: monitor: Port handler_2 to use QDict This commit ports command handlers that receive two arguments to use the new monitor's dictionary. Signed-off-by: Luiz Capitulino Signed-off-by: Anthony Liguori --- net.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'net.h') diff --git a/net.h b/net.h index bab02f5de9..7fadc350e0 100644 --- a/net.h +++ b/net.h @@ -3,6 +3,7 @@ #include "sys-queue.h" #include "qemu-common.h" +#include "qdict.h" /* VLANs support */ @@ -80,7 +81,7 @@ void qemu_check_nic_model_list(NICInfo *nd, const char * const *models, void qemu_handler_true(void *opaque); void do_info_network(Monitor *mon); -void do_set_link(Monitor *mon, const char *name, const char *up_or_down); +void do_set_link(Monitor *mon, const QDict *qdict); void do_info_usernet(Monitor *mon); @@ -145,8 +146,8 @@ void net_slirp_redir(const char *redir_str); void net_cleanup(void); void net_client_check(void); void net_set_boot_mask(int boot_mask); -void net_host_device_add(Monitor *mon, const char *device, const char *opts); -void net_host_device_remove(Monitor *mon, int vlan_id, const char *device); +void net_host_device_add(Monitor *mon, const QDict *qdict); +void net_host_device_remove(Monitor *mon, const QDict *qdict); #define DEFAULT_NETWORK_SCRIPT "/etc/qemu-ifup" #define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/qemu-ifdown" -- cgit v1.2.3