diff options
author | Mark McLoughlin <markmc@redhat.com> | 2009-11-25 18:49:01 +0000 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-03 09:41:29 -0600 |
commit | 8facf822b4356aad7b2868ce57522b2f78563d0e (patch) | |
tree | 822034ae18c351a148b1cb74d201e950c484441c | |
parent | 8641d27aa40928366e8ef6232a90bf53b964ae72 (diff) | |
download | qemu-8facf822b4356aad7b2868ce57522b2f78563d0e.tar.gz qemu-8facf822b4356aad7b2868ce57522b2f78563d0e.tar.bz2 qemu-8facf822b4356aad7b2868ce57522b2f78563d0e.zip |
net: introduce NetClientInfo
This structure holds data which is common to all instances of a given
net client type/model.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | net.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -42,6 +42,17 @@ typedef ssize_t (NetReceiveIOV)(VLANClientState *, const struct iovec *, int); typedef void (NetCleanup) (VLANClientState *); typedef void (LinkStatusChanged)(VLANClientState *); +typedef struct NetClientInfo { + net_client_type type; + size_t size; + NetReceive *receive; + NetReceive *receive_raw; + NetReceiveIOV *receive_iov; + NetCanReceive *can_receive; + NetCleanup *cleanup; + LinkStatusChanged *link_status_changed; +} NetClientInfo; + struct VLANClientState { net_client_type type; NetReceive *receive; |