]> xenbits.xensource.com Git - libvirt.git/commit
util: move virInterface(State|Link)/virNetDevFeature from conf to util
authorLaine Stump <laine@laine.org>
Mon, 13 Jun 2016 17:06:15 +0000 (13:06 -0400)
committerLaine Stump <laine@laine.org>
Sun, 26 Jun 2016 23:33:07 +0000 (19:33 -0400)
commit638c6e5ba58f3ba9d19b5f0d27d97700c8614276
treeaf9fe60213059d0af62fb608751155069cd683c6
parent943a400c0d0be50a57610b0fd5b3e2ffeef82391
util: move virInterface(State|Link)/virNetDevFeature from conf to util

These had been declared in conf/device_conf.h, but then used in
util/virnetdev.c, meaning that we had to #include conf/device_conf.h
in virnetdev.c (which we have for a long time said shouldn't be done.

This caused a bigger problem when I tried to #include util/virnetdev.h
in a file in src/conf (which is allowed) - for some reason the
"device_conf.h: File not found" error.

The solution is to move the data types and functions used in util
sources from conf to util. Some names were adjusted during the move
("virInterface" --> "virNetDevIf", and "VIR_INTERFACE" -->
"VIR_NETDEV_IF")
src/conf/device_conf.c
src/conf/device_conf.h
src/conf/domain_conf.c
src/conf/interface_conf.h
src/conf/node_device_conf.h
src/libvirt_private.syms
src/util/virnetdev.c
src/util/virnetdev.h
tests/virnetdevtest.c