diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2011-07-20 12:20:20 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-07-23 10:19:50 -0500 |
commit | e8580c23d96c345e7e022b27697a2d99ba94f8cb (patch) | |
tree | a7a3b29bb96b44066ae9ddcb0a523113309d657d /net.h | |
parent | 698365ea3fce6bf78269b1b79124cc62a332a43b (diff) | |
download | qemu-e8580c23d96c345e7e022b27697a2d99ba94f8cb.tar.gz qemu-e8580c23d96c345e7e022b27697a2d99ba94f8cb.tar.bz2 qemu-e8580c23d96c345e7e022b27697a2d99ba94f8cb.zip |
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 <armbru@redhat.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'net.h')
-rw-r--r-- | net.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); |