aboutsummaryrefslogtreecommitdiff
path: root/net.h
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2009-08-28 15:27:14 -0300
committerAnthony Liguori <aliguori@us.ibm.com>2009-09-04 09:37:31 -0500
commitf18c16de4a321f1dda01dc7eae8f0aca86900e32 (patch)
tree8cc320c4b06a81cfe04b91a4ce5f1eb9c6589adc /net.h
parentmonitor: Port handler_1 to use QDict (diff)
downloadqemu-kvm-f18c16de4a321f1dda01dc7eae8f0aca86900e32.tar.gz
qemu-kvm-f18c16de4a321f1dda01dc7eae8f0aca86900e32.tar.bz2
qemu-kvm-f18c16de4a321f1dda01dc7eae8f0aca86900e32.zip
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 <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'net.h')
-rw-r--r--net.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/net.h b/net.h
index bab02f5de..7fadc350e 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"