qemu-ga: qmp_guest_network_get_interfaces(): get rid of snprintf() + error_set()
[qemu/ar7.git] / hw / vhost_net.h
blob012aba41482d8f82016a1686a070a77bd5c94ba4
1 #ifndef VHOST_NET_H
2 #define VHOST_NET_H
4 #include "net/net.h"
6 struct vhost_net;
7 typedef struct vhost_net VHostNetState;
9 VHostNetState *vhost_net_init(NetClientState *backend, int devfd, bool force);
11 bool vhost_net_query(VHostNetState *net, VirtIODevice *dev);
12 int vhost_net_start(VHostNetState *net, VirtIODevice *dev);
13 void vhost_net_stop(VHostNetState *net, VirtIODevice *dev);
15 void vhost_net_cleanup(VHostNetState *net);
17 unsigned vhost_net_get_features(VHostNetState *net, unsigned features);
18 void vhost_net_ack_features(VHostNetState *net, unsigned features);
20 #endif