From 6f7b3b1be229e3a686a4507d6c11dfcf5f12cef4 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Wed, 20 Jul 2011 12:20:20 +0200 Subject: net: Refactor net_client_types Position entries of net_client_types according to the corresponding values of NET_CLIENT_TYPE_*. The array size is now defined by NET_CLIENT_TYPE_MAX. This will allow to obtain entries based on type value in later patches. At this chance rename NET_CLIENT_TYPE_SLIRP to NET_CLIENT_TYPE_USER for the sake of consistency. CC: Markus Armbruster Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori --- net.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'net.h') diff --git a/net.h b/net.h index 5b883a9..4fdd942 100644 --- a/net.h +++ b/net.h @@ -31,11 +31,13 @@ typedef struct NICConf { typedef enum { NET_CLIENT_TYPE_NONE, NET_CLIENT_TYPE_NIC, - NET_CLIENT_TYPE_SLIRP, + NET_CLIENT_TYPE_USER, NET_CLIENT_TYPE_TAP, NET_CLIENT_TYPE_SOCKET, NET_CLIENT_TYPE_VDE, - NET_CLIENT_TYPE_DUMP + NET_CLIENT_TYPE_DUMP, + + NET_CLIENT_TYPE_MAX } net_client_type; typedef void (NetPoll)(VLANClientState *, bool enable); -- cgit v1.1