usb-redir: Add an usbredir_setup_usb_eps() helper function
[qemu.git] / net / hub.h
blob4cbfdb128b63272739d2472840c7c2d5fa3c2024
1 /*
2 * Hub net client
4 * Copyright IBM, Corp. 2012
6 * Authors:
7 * Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
8 * Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
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.
15 #ifndef NET_HUB_H
16 #define NET_HUB_H
18 #include "qemu-common.h"
20 NetClientState *net_hub_add_port(int hub_id, const char *name);
21 NetClientState *net_hub_find_client_by_name(int hub_id, const char *name);
22 void net_hub_info(Monitor *mon);
23 int net_hub_id_for_client(NetClientState *nc, int *id);
24 void net_hub_check_clients(void);
25 NetClientState *net_hub_port_find(int hub_id);
27 #endif /* NET_HUB_H */