mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
hw, net: "net_client_type" -> "NetClientOptionsKind" (qapi-generated)
NET_CLIENT_TYPE_ -> NET_CLIENT_OPTIONS_KIND_ Signed-off-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
This commit is contained in:
parent
14aa0c2de0
commit
2be64a68ed
34 changed files with 71 additions and 83 deletions
16
net.h
16
net.h
|
@ -7,6 +7,7 @@
|
|||
#include "qemu-option.h"
|
||||
#include "net/queue.h"
|
||||
#include "vmstate.h"
|
||||
#include "qapi-types.h"
|
||||
|
||||
struct MACAddr {
|
||||
uint8_t a[6];
|
||||
|
@ -29,19 +30,6 @@ typedef struct NICConf {
|
|||
|
||||
/* VLANs support */
|
||||
|
||||
typedef enum {
|
||||
NET_CLIENT_TYPE_NONE,
|
||||
NET_CLIENT_TYPE_NIC,
|
||||
NET_CLIENT_TYPE_USER,
|
||||
NET_CLIENT_TYPE_TAP,
|
||||
NET_CLIENT_TYPE_SOCKET,
|
||||
NET_CLIENT_TYPE_VDE,
|
||||
NET_CLIENT_TYPE_DUMP,
|
||||
NET_CLIENT_TYPE_BRIDGE,
|
||||
|
||||
NET_CLIENT_TYPE_MAX
|
||||
} net_client_type;
|
||||
|
||||
typedef void (NetPoll)(VLANClientState *, bool enable);
|
||||
typedef int (NetCanReceive)(VLANClientState *);
|
||||
typedef ssize_t (NetReceive)(VLANClientState *, const uint8_t *, size_t);
|
||||
|
@ -50,7 +38,7 @@ typedef void (NetCleanup) (VLANClientState *);
|
|||
typedef void (LinkStatusChanged)(VLANClientState *);
|
||||
|
||||
typedef struct NetClientInfo {
|
||||
net_client_type type;
|
||||
NetClientOptionsKind type;
|
||||
size_t size;
|
||||
NetReceive *receive;
|
||||
NetReceive *receive_raw;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue