From: Mark McLoughlin Date: Wed, 25 Nov 2009 18:49:01 +0000 (+0000) Subject: net: introduce NetClientInfo X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=3ed79cc949369c7310217dfd05bc45351436fc71;p=qmiga%2Fqemu.git 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 Signed-off-by: Anthony Liguori --- diff --git a/net.h b/net.h index 9ffcfe385d..56c584944a 100644 --- a/net.h +++ b/net.h @@ -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;