mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
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:
parent
d8b9610bb0
commit
ccb3dc72b8
@ -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)
|
||||
{
|
||||
|
@ -86,6 +86,10 @@ int
|
||||
virNodeDeviceObjListGetParentHost(virNodeDeviceObjList *devs,
|
||||
virNodeDeviceDef *def);
|
||||
|
||||
bool
|
||||
virNodeDeviceObjHasCap(const virNodeDeviceObj *obj,
|
||||
int type);
|
||||
|
||||
virNodeDeviceObjList *
|
||||
virNodeDeviceObjListNew(void);
|
||||
|
||||
|
@ -1298,6 +1298,7 @@ virNetworkPortDefSaveStatus;
|
||||
# conf/virnodedeviceobj.h
|
||||
virNodeDeviceObjEndAPI;
|
||||
virNodeDeviceObjGetDef;
|
||||
virNodeDeviceObjHasCap;
|
||||
virNodeDeviceObjIsActive;
|
||||
virNodeDeviceObjIsAutostart;
|
||||
virNodeDeviceObjIsPersistent;
|
||||
|
Loading…
Reference in New Issue
Block a user