summary refs log tree commit diff stats
path: root/net.h
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2009-11-25 18:49:30 +0000
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-03 09:41:34 -0600
commit665a3b071dc6351f9d1840dc50f7cda80bca5f40 (patch)
tree1342018a8e29fd3b027776e261732f6db70452cf /net.h
parent68da46eeb6cbe60b03f7afcb4e3cd1b5f14cc259 (diff)
downloadfocaccia-qemu-665a3b071dc6351f9d1840dc50f7cda80bca5f40.tar.gz
focaccia-qemu-665a3b071dc6351f9d1840dc50f7cda80bca5f40.zip
net: remove VLANClientState members now in NetClientInfo
Add a NetClientInfo pointer to VLANClientState and use that
for the typecode and function pointers.

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.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/net.h b/net.h
index 9185bcf794..497a7373fa 100644
--- a/net.h
+++ b/net.h
@@ -54,15 +54,7 @@ typedef struct NetClientInfo {
 } NetClientInfo;
 
 struct VLANClientState {
-    net_client_type type;
-    NetReceive *receive;
-    NetReceive *receive_raw;
-    NetReceiveIOV *receive_iov;
-    /* Packets may still be sent if this returns zero.  It's used to
-       rate-limit the slirp code.  */
-    NetCanReceive *can_receive;
-    NetCleanup *cleanup;
-    LinkStatusChanged *link_status_changed;
+    NetClientInfo *info;
     int link_down;
     QTAILQ_ENTRY(VLANClientState) next;
     struct VLANState *vlan;