mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
main-loop: create main-loop.c
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
44a9b356ad
commit
d3b12f5dec
11 changed files with 523 additions and 454 deletions
|
@ -3,8 +3,6 @@
|
|||
|
||||
#include "qemu-common.h"
|
||||
|
||||
#ifdef CONFIG_SLIRP
|
||||
|
||||
struct Slirp;
|
||||
typedef struct Slirp Slirp;
|
||||
|
||||
|
@ -44,13 +42,4 @@ void slirp_socket_recv(Slirp *slirp, struct in_addr guest_addr,
|
|||
size_t slirp_socket_can_recv(Slirp *slirp, struct in_addr guest_addr,
|
||||
int guest_port);
|
||||
|
||||
#else /* !CONFIG_SLIRP */
|
||||
|
||||
static inline void slirp_select_fill(int *pnfds, fd_set *readfds,
|
||||
fd_set *writefds, fd_set *xfds) { }
|
||||
|
||||
static inline void slirp_select_poll(fd_set *readfds, fd_set *writefds,
|
||||
fd_set *xfds, int select_error) { }
|
||||
#endif /* !CONFIG_SLIRP */
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue