virnodedeviceobj: export virNodeDeviceObjHasCap

The function will be reused in the nodedev drivers udev handling.

Signed-off-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
Boris Fiuczynski 2022-03-17 10:48:28 +01:00 committed by Michal Privoznik
parent d8b9610bb0
commit ccb3dc72b8
3 changed files with 6 additions and 2 deletions

View File

@ -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)
{

View File

@ -86,6 +86,10 @@ int
virNodeDeviceObjListGetParentHost(virNodeDeviceObjList *devs,
virNodeDeviceDef *def);
bool
virNodeDeviceObjHasCap(const virNodeDeviceObj *obj,
int type);
virNodeDeviceObjList *
virNodeDeviceObjListNew(void);

View File

@ -1298,6 +1298,7 @@ virNetworkPortDefSaveStatus;
# conf/virnodedeviceobj.h
virNodeDeviceObjEndAPI;
virNodeDeviceObjGetDef;
virNodeDeviceObjHasCap;
virNodeDeviceObjIsActive;
virNodeDeviceObjIsAutostart;
virNodeDeviceObjIsPersistent;