mirror of
				https://github.com/qemu/qemu.git
				synced 2025-10-31 04:06:46 +00:00 
			
		
		
		
	 1422e32db5
			
		
	
	
		1422e32db5
		
	
	
	
	
		
			
			Move public headers to include/net, and leave private headers in net/. Put the virtio headers in include/net/tap.h, removing the multiple copies that existed. Leave include/net/tap.h as the interface for NICs, and net/tap_int.h as the interface for OS-specific parts of the tap backend. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
		
			
				
	
	
		
			21 lines
		
	
	
		
			577 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			577 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef VHOST_NET_H
 | |
| #define VHOST_NET_H
 | |
| 
 | |
| #include "net/net.h"
 | |
| 
 | |
| struct vhost_net;
 | |
| typedef struct vhost_net VHostNetState;
 | |
| 
 | |
| VHostNetState *vhost_net_init(NetClientState *backend, int devfd, bool force);
 | |
| 
 | |
| bool vhost_net_query(VHostNetState *net, VirtIODevice *dev);
 | |
| int vhost_net_start(VHostNetState *net, VirtIODevice *dev);
 | |
| void vhost_net_stop(VHostNetState *net, VirtIODevice *dev);
 | |
| 
 | |
| void vhost_net_cleanup(VHostNetState *net);
 | |
| 
 | |
| unsigned vhost_net_get_features(VHostNetState *net, unsigned features);
 | |
| void vhost_net_ack_features(VHostNetState *net, unsigned features);
 | |
| 
 | |
| #endif
 |