mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 11:31:16 +00:00
virusb: Introduce virUSBDeviceGetPath
We will need this function in near future so that we know what /dev device corresponds to the USB device. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
654b4d48bc
commit
c4237d8e0c
@ -2634,6 +2634,7 @@ virUSBDeviceFree;
|
||||
virUSBDeviceGetBus;
|
||||
virUSBDeviceGetDevno;
|
||||
virUSBDeviceGetName;
|
||||
virUSBDeviceGetPath;
|
||||
virUSBDeviceGetUsedBy;
|
||||
virUSBDeviceListAdd;
|
||||
virUSBDeviceListCount;
|
||||
|
@ -406,6 +406,11 @@ const char *virUSBDeviceGetName(virUSBDevicePtr dev)
|
||||
return dev->name;
|
||||
}
|
||||
|
||||
const char *virUSBDeviceGetPath(virUSBDevicePtr dev)
|
||||
{
|
||||
return dev->path;
|
||||
}
|
||||
|
||||
unsigned int virUSBDeviceGetBus(virUSBDevicePtr dev)
|
||||
{
|
||||
return dev->bus;
|
||||
|
@ -67,6 +67,7 @@ void virUSBDeviceGetUsedBy(virUSBDevicePtr dev,
|
||||
const char **drv_name,
|
||||
const char **dom_name);
|
||||
const char *virUSBDeviceGetName(virUSBDevicePtr dev);
|
||||
const char *virUSBDeviceGetPath(virUSBDevicePtr usb);
|
||||
|
||||
unsigned int virUSBDeviceGetBus(virUSBDevicePtr dev);
|
||||
unsigned int virUSBDeviceGetDevno(virUSBDevicePtr dev);
|
||||
|
Loading…
Reference in New Issue
Block a user