]> git.ipfire.org Git - thirdparty/qemu.git/blame - net/hub.h
vhost-user-input: use free(elem) instead of g_free(elem)
[thirdparty/qemu.git] / net / hub.h
CommitLineData
f6c874e3
SH
1/*
2 * Hub net client
3 *
4 * Copyright IBM, Corp. 2012
5 *
6 * Authors:
7 * Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
8 * Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
9 *
10 * This work is licensed under the terms of the GNU LGPL, version 2 or later.
11 * See the COPYING.LIB file in the top-level directory.
12 *
13 */
14
15#ifndef NET_HUB_H
16#define NET_HUB_H
17
f6c874e3 18
18d65d22
TH
19NetClientState *net_hub_add_port(int hub_id, const char *name,
20 NetClientState *hubpeer);
4e68f7a0 21NetClientState *net_hub_find_client_by_name(int hub_id, const char *name);
f6c874e3 22void net_hub_info(Monitor *mon);
81017645 23void net_hub_check_clients(void);
199ee608 24bool net_hub_flush(NetClientState *nc);
f6c874e3
SH
25
26#endif /* NET_HUB_H */