mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
domain_conf: remove virDomainGraphicsListenSetNetwork
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
4b75237fe6
commit
39995aa480
@ -23815,30 +23815,6 @@ virDomainGraphicsListenGetNetwork(virDomainGraphicsDefPtr def, size_t i)
|
||||
}
|
||||
|
||||
|
||||
/* Make a copy of up to len characters of address, and store it in
|
||||
* listens[i].network */
|
||||
int
|
||||
virDomainGraphicsListenSetNetwork(virDomainGraphicsDefPtr def,
|
||||
size_t i, const char *network, int len)
|
||||
{
|
||||
virDomainGraphicsListenDefPtr listenInfo
|
||||
= virDomainGraphicsGetListen(def, i, true);
|
||||
|
||||
if (!listenInfo)
|
||||
return -1;
|
||||
|
||||
listenInfo->type = VIR_DOMAIN_GRAPHICS_LISTEN_TYPE_NETWORK;
|
||||
|
||||
if (!network) {
|
||||
VIR_FREE(listenInfo->network);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (VIR_STRNDUP(listenInfo->network, network, len) < 0)
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* virDomainNetFind:
|
||||
* @def: domain's def
|
||||
|
@ -2825,9 +2825,6 @@ int virDomainGraphicsListenAppendAddress(virDomainGraphicsDefPtr def,
|
||||
const char *virDomainGraphicsListenGetNetwork(virDomainGraphicsDefPtr def,
|
||||
size_t i)
|
||||
ATTRIBUTE_NONNULL(1);
|
||||
int virDomainGraphicsListenSetNetwork(virDomainGraphicsDefPtr def,
|
||||
size_t i, const char *network, int len)
|
||||
ATTRIBUTE_NONNULL(1);
|
||||
|
||||
int virDomainNetGetActualType(virDomainNetDefPtr iface);
|
||||
const char *virDomainNetGetActualBridgeName(virDomainNetDefPtr iface);
|
||||
|
@ -304,7 +304,6 @@ virDomainGraphicsListenAppendAddress;
|
||||
virDomainGraphicsListenGetAddress;
|
||||
virDomainGraphicsListenGetNetwork;
|
||||
virDomainGraphicsListenGetType;
|
||||
virDomainGraphicsListenSetNetwork;
|
||||
virDomainGraphicsListenSetType;
|
||||
virDomainGraphicsSpiceChannelModeTypeFromString;
|
||||
virDomainGraphicsSpiceChannelModeTypeToString;
|
||||
|
Loading…
x
Reference in New Issue
Block a user