mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 11:31:16 +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 virClass *virNodeDeviceObjListClass;
|
||||||
static void virNodeDeviceObjDispose(void *opaque);
|
static void virNodeDeviceObjDispose(void *opaque);
|
||||||
static void virNodeDeviceObjListDispose(void *opaque);
|
static void virNodeDeviceObjListDispose(void *opaque);
|
||||||
static bool virNodeDeviceObjHasCap(const virNodeDeviceObj *obj, int type);
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
virNodeDeviceObjOnceInit(void)
|
virNodeDeviceObjOnceInit(void)
|
||||||
@ -684,7 +683,7 @@ virNodeDeviceObjListGetParentHost(virNodeDeviceObjList *devs,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static bool
|
bool
|
||||||
virNodeDeviceObjHasCap(const virNodeDeviceObj *obj,
|
virNodeDeviceObjHasCap(const virNodeDeviceObj *obj,
|
||||||
int type)
|
int type)
|
||||||
{
|
{
|
||||||
|
@ -86,6 +86,10 @@ int
|
|||||||
virNodeDeviceObjListGetParentHost(virNodeDeviceObjList *devs,
|
virNodeDeviceObjListGetParentHost(virNodeDeviceObjList *devs,
|
||||||
virNodeDeviceDef *def);
|
virNodeDeviceDef *def);
|
||||||
|
|
||||||
|
bool
|
||||||
|
virNodeDeviceObjHasCap(const virNodeDeviceObj *obj,
|
||||||
|
int type);
|
||||||
|
|
||||||
virNodeDeviceObjList *
|
virNodeDeviceObjList *
|
||||||
virNodeDeviceObjListNew(void);
|
virNodeDeviceObjListNew(void);
|
||||||
|
|
||||||
|
@ -1298,6 +1298,7 @@ virNetworkPortDefSaveStatus;
|
|||||||
# conf/virnodedeviceobj.h
|
# conf/virnodedeviceobj.h
|
||||||
virNodeDeviceObjEndAPI;
|
virNodeDeviceObjEndAPI;
|
||||||
virNodeDeviceObjGetDef;
|
virNodeDeviceObjGetDef;
|
||||||
|
virNodeDeviceObjHasCap;
|
||||||
virNodeDeviceObjIsActive;
|
virNodeDeviceObjIsActive;
|
||||||
virNodeDeviceObjIsAutostart;
|
virNodeDeviceObjIsAutostart;
|
||||||
virNodeDeviceObjIsPersistent;
|
virNodeDeviceObjIsPersistent;
|
||||||
|
Loading…
Reference in New Issue
Block a user