The function will be reused in the nodedev drivers udev handling.
Signed-off-by: Boris Fiuczynski <fiuczy(a)linux.ibm.com>
Reviewed-by: Michal Privoznik <mprivozn(a)redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma(a)redhat.com>
---
src/conf/virnodedeviceobj.c | 3 +--
src/conf/virnodedeviceobj.h | 4 ++++
src/libvirt_private.syms | 1 +
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/conf/virnodedeviceobj.c b/src/conf/virnodedeviceobj.c
index fd23ea5fc7..49947d0a58 100644
--- a/src/conf/virnodedeviceobj.c
+++ b/src/conf/virnodedeviceobj.c
@@ -58,7 +58,6 @@ static virClass *virNodeDeviceObjClass;
static virClass *virNodeDeviceObjListClass;
static void virNodeDeviceObjDispose(void *opaque);
static void virNodeDeviceObjListDispose(void *opaque);
-static bool virNodeDeviceObjHasCap(const virNodeDeviceObj *obj, int type);
static int
virNodeDeviceObjOnceInit(void)
@@ -684,7 +683,7 @@ virNodeDeviceObjListGetParentHost(virNodeDeviceObjList *devs,
}
-static bool
+bool
virNodeDeviceObjHasCap(const virNodeDeviceObj *obj,
int type)
{
diff --git a/src/conf/virnodedeviceobj.h b/src/conf/virnodedeviceobj.h
index 5f6d22e1f6..ba2e424998 100644
--- a/src/conf/virnodedeviceobj.h
+++ b/src/conf/virnodedeviceobj.h
@@ -86,6 +86,10 @@ int
virNodeDeviceObjListGetParentHost(virNodeDeviceObjList *devs,
virNodeDeviceDef *def);
+bool
+virNodeDeviceObjHasCap(const virNodeDeviceObj *obj,
+ int type);
+
virNodeDeviceObjList *
virNodeDeviceObjListNew(void);
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 01503083ef..3a8e16525b 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -1298,6 +1298,7 @@ virNetworkPortDefSaveStatus;
# conf/virnodedeviceobj.h
virNodeDeviceObjEndAPI;
virNodeDeviceObjGetDef;
+virNodeDeviceObjHasCap;
virNodeDeviceObjIsActive;
virNodeDeviceObjIsAutostart;
virNodeDeviceObjIsPersistent;
--
2.33.1