On 01/25/2018 10:23 AM, Erik Skultety wrote:
Whether asking for a number of capabilities supported by a device or
listing them, it's handled essentially by a copy-paste code, so extract
the common stuff into this new helper which also updates all
capabilities just before touching them.
Signed-off-by: Erik Skultety <eskultet(a)redhat.com>
---
src/conf/node_device_conf.c | 73 +++++++++++++++++++++++++++++++++++
src/conf/node_device_conf.h | 5 +++
src/libvirt_private.syms | 1 +
src/node_device/node_device_driver.c | 75 +++++++++---------------------------
4 files changed, 97 insertions(+), 57 deletions(-)
ACK
Michal