mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 18:44:58 -06:00
qapi event: convert SPICE events
SPICE_INITIALIZED, SPICE_CONNECTED, SPICE_DISCONNECTED and SPICE_MIGRATE_COMPLETED are converted in one patch, since they use some common functions. inet_strfamily() is removed since no callers exist anymore. Note that there is no existing doc for SPICE_MIGRATE_COMPLETED in docs/qmp/qmp-events.txt before this patch. Signed-off-by: Wenchao Xia <wenchaoqemu@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
fb6ba0d525
commit
7cfadb6b52
5 changed files with 91 additions and 107 deletions
|
@ -92,16 +92,6 @@ static void inet_setport(struct addrinfo *e, int port)
|
|||
}
|
||||
}
|
||||
|
||||
const char *inet_strfamily(int family)
|
||||
{
|
||||
switch (family) {
|
||||
case PF_INET6: return "ipv6";
|
||||
case PF_INET: return "ipv4";
|
||||
case PF_UNIX: return "unix";
|
||||
}
|
||||
return "unknown";
|
||||
}
|
||||
|
||||
NetworkAddressFamily inet_netfamily(int family)
|
||||
{
|
||||
switch (family) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue