Revision b946a153 net.h
b/net.h | ||
---|---|---|
9 | 9 |
|
10 | 10 |
typedef struct VLANClientState VLANClientState; |
11 | 11 |
|
12 |
typedef void (NetCleanup) (VLANClientState *); |
|
12 | 13 |
typedef void (LinkStatusChanged)(VLANClientState *); |
13 | 14 |
|
14 | 15 |
struct VLANClientState { |
... | ... | |
17 | 18 |
/* Packets may still be sent if this returns zero. It's used to |
18 | 19 |
rate-limit the slirp code. */ |
19 | 20 |
IOCanRWHandler *fd_can_read; |
21 |
NetCleanup *cleanup; |
|
20 | 22 |
LinkStatusChanged *link_status_changed; |
21 | 23 |
int link_down; |
22 | 24 |
void *opaque; |
... | ... | |
40 | 42 |
const char *name, |
41 | 43 |
IOReadHandler *fd_read, |
42 | 44 |
IOCanRWHandler *fd_can_read, |
45 |
NetCleanup *cleanup, |
|
43 | 46 |
void *opaque); |
44 | 47 |
void qemu_del_vlan_client(VLANClientState *vc); |
45 | 48 |
VLANClientState *qemu_find_vlan_client(VLANState *vlan, void *opaque); |
Also available in: Unified diff