[libvirt] [PATCH 0/3] nodedev: Create common virNodeDeviceObj* APIs

John Ferlan jferlan at redhat.com
Thu Apr 6 11:31:57 UTC 2017


Merge code in node_device_driver.c and test_driver into virnodedeviceobj
to count the number of devices and to return a list of names. Also modify
the export list API to take an address of 'devobjs' to follow other usages.

FWIW: This is part of the common driver objects code I've been working
through. I figured I will post each driver separately rather than one
larger series.

John Ferlan (3):
  nodedev: Introduce virNodeDeviceObjNumOfDevices
  nodedev: Introduce virNodeDeviceObjGetNames
  nodedev: Pass driver arg by ref

 src/conf/virnodedeviceobj.c          | 66 +++++++++++++++++++++++++++++++++---
 src/conf/virnodedeviceobj.h          | 20 ++++++++---
 src/libvirt_private.syms             |  3 +-
 src/node_device/node_device_driver.c | 48 +++++++-------------------
 src/test/test_driver.c               | 33 ++++--------------
 5 files changed, 98 insertions(+), 72 deletions(-)

-- 
2.9.3




More information about the libvir-list mailing list