]> xenbits.xensource.com Git - libvirt.git/commit
conf: make virDomainNetGetActualVlan arg/return val const
authorLaine Stump <laine@redhat.com>
Tue, 1 Oct 2019 16:25:47 +0000 (12:25 -0400)
committerLaine Stump <laine@redhat.com>
Mon, 25 Nov 2019 20:29:46 +0000 (15:29 -0500)
commit12207fcfcfefb7d954753db3b8b14d7655cd9ef4
treee6e5a153ef1c403269957534e465db2a44ee2c9d
parent1b029a929d09904485fba0c9778f6da9abf37158
conf: make virDomainNetGetActualVlan arg/return val const

This is needed if we want to call the function when the
virDomainNetDef* we have is a const.

Since virDomainNetGetActualVlan returns a pointer to memory that is
within the virDomainNetDefPtr arg, the returned pointer must also be
made const. This leads to a cascade of other virNetDevVlanPtr's that
must be changed to "const virNetDevVlan *".

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
14 files changed:
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libxl/libxl_conf.c
src/libxl/xen_common.c
src/util/virhostdev.c
src/util/virnetdev.c
src/util/virnetdev.h
src/util/virnetdevmacvlan.c
src/util/virnetdevmacvlan.h
src/util/virnetdevopenvswitch.c
src/util/virnetdevopenvswitch.h
src/util/virnetdevtap.c
src/util/virnetdevtap.h
tests/bhyvexml2argvmock.c