diff options
| author | Mark McLoughlin <markmc@redhat.com> | 2009-11-25 18:49:31 +0000 |
|---|---|---|
| committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-03 09:41:35 -0600 |
| commit | 57f9ef173d940ec5c2d04a9d1a37b4c86c9f5b27 (patch) | |
| tree | d09cf6d79d90f6fe807225ebce68ab7fa3d60f7d /net.h | |
| parent | 665a3b071dc6351f9d1840dc50f7cda80bca5f40 (diff) | |
| download | focaccia-qemu-57f9ef173d940ec5c2d04a9d1a37b4c86c9f5b27.tar.gz focaccia-qemu-57f9ef173d940ec5c2d04a9d1a37b4c86c9f5b27.zip | |
net: add qemu_foreach_nic()
Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'net.h')
| -rw-r--r-- | net.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net.h b/net.h index 497a7373fa..d583d590a7 100644 --- a/net.h +++ b/net.h @@ -95,6 +95,8 @@ NICState *qemu_new_nic(NetClientInfo *info, void qemu_del_vlan_client(VLANClientState *vc); VLANClientState *qemu_find_vlan_client_by_name(Monitor *mon, int vlan_id, const char *client_str); +typedef void (*qemu_nic_foreach)(NICState *nic, void *opaque); +void qemu_foreach_nic(qemu_nic_foreach func, void *opaque); int qemu_can_send_packet(VLANClientState *vc); ssize_t qemu_sendv_packet(VLANClientState *vc, const struct iovec *iov, int iovcnt); |