mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
util: introduce virPCIDeviceConfigOpenInternal
A thin wrapper to allow creating new functions. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
257f96eb1e
commit
fc16c69987
@ -291,7 +291,7 @@ virPCIDeviceGetDriverPathAndName(virPCIDevicePtr dev, char **path, char **name)
|
|||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
virPCIDeviceConfigOpen(virPCIDevicePtr dev, bool fatal)
|
virPCIDeviceConfigOpenInternal(virPCIDevicePtr dev, bool fatal)
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
@ -314,6 +314,12 @@ virPCIDeviceConfigOpen(virPCIDevicePtr dev, bool fatal)
|
|||||||
return fd;
|
return fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int
|
||||||
|
virPCIDeviceConfigOpen(virPCIDevicePtr dev, bool fatal)
|
||||||
|
{
|
||||||
|
return virPCIDeviceConfigOpenInternal(dev, fatal);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
virPCIDeviceConfigClose(virPCIDevicePtr dev, int cfgfd)
|
virPCIDeviceConfigClose(virPCIDevicePtr dev, int cfgfd)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user