mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
sockets: move fd_is_socket() into common sockets code
The fd_is_socket() helper method is useful in a few places, so put it in the common sockets code. Make the code more compact while moving it. Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
abd983c0e0
commit
58dc31f1a7
6 changed files with 90 additions and 13 deletions
|
@ -12,6 +12,7 @@ int inet_aton(const char *cp, struct in_addr *ia);
|
|||
#include "qapi/qapi-types-sockets.h"
|
||||
|
||||
/* misc helpers */
|
||||
bool fd_is_socket(int fd);
|
||||
int qemu_socket(int domain, int type, int protocol);
|
||||
int qemu_accept(int s, struct sockaddr *addr, socklen_t *addrlen);
|
||||
int socket_set_cork(int fd, int v);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue