]> git.ipfire.org Git - thirdparty/libvirt.git/commit
domain_conf: cleanup virDomainGraphicsGetListen
authorPavel Hrdina <phrdina@redhat.com>
Sun, 10 Apr 2016 16:57:12 +0000 (18:57 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 13 Apr 2016 08:43:49 +0000 (10:43 +0200)
commit37b1f450667c31a557992d7d5fc7cb60c0c728a8
tree98d3819c0e953833cf69acd7e8a54f980246459a
parentd6d17226ffacba6e88283c999a3e606e4e709a5e
domain_conf: cleanup virDomainGraphicsGetListen

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@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms