[libvirt] [PATCH 10/18] domain_conf: cleanup virDomainGraphicsGetListen
Ján Tomko
jtomko at redhat.com
Fri Apr 8 16:29:14 UTC 2016
On Mon, Apr 04, 2016 at 03:20:27PM +0200, Pavel Hrdina wrote:
> Removes the check for graphics type, it's not a public API and developer
> know what he's doing and this check makes no sense. It also removes
> the ability to allocate a new array if there is none. This was used by
> the virDomainGraphicsListenAdd* functions and isn't used anymore.
>
> This is now a simple getter with simple check for listens array presence
> and whether the index in out of bounds.
>
> Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
> ---
> src/conf/domain_conf.c | 29 ++++++++---------------------
> src/conf/domain_conf.h | 2 ++
> src/libvirt_private.syms | 1 +
> 3 files changed, 11 insertions(+), 21 deletions(-)
>
ACK
Jan
More information about the libvir-list
mailing list