aboutsummaryrefslogtreecommitdiff
path: root/net.h
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2009-11-25 18:49:02 +0000
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-03 09:41:29 -0600
commit45460d1a53d202550945e2b144af8ebb1d62bed0 (patch)
treeea212264dc10a30951c73e1cdf141b1dd951ebca /net.h
parent3ed79cc949369c7310217dfd05bc45351436fc71 (diff)
downloadqemu-45460d1a53d202550945e2b144af8ebb1d62bed0.zip
qemu-45460d1a53d202550945e2b144af8ebb1d62bed0.tar.gz
qemu-45460d1a53d202550945e2b144af8ebb1d62bed0.tar.bz2
net: introduce qemu_new_net_client()
A replacement for qemu_new_vlan_client(), using NetClientInfo to replace most arguments. Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'net.h')
-rw-r--r--net.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/net.h b/net.h
index 56c5849..71a9a44 100644
--- a/net.h
+++ b/net.h
@@ -85,6 +85,11 @@ struct VLANState {
VLANState *qemu_find_vlan(int id, int allocate);
VLANClientState *qemu_find_netdev(const char *id);
+VLANClientState *qemu_new_net_client(NetClientInfo *info,
+ VLANState *vlan,
+ VLANClientState *peer,
+ const char *model,
+ const char *name);
VLANClientState *qemu_new_vlan_client(net_client_type type,
VLANState *vlan,
VLANClientState *peer,