mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00: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
|
||||
virPCIDeviceConfigOpen(virPCIDevicePtr dev, bool fatal)
|
||||
virPCIDeviceConfigOpenInternal(virPCIDevicePtr dev, bool fatal)
|
||||
{
|
||||
int fd;
|
||||
|
||||
@ -314,6 +314,12 @@ virPCIDeviceConfigOpen(virPCIDevicePtr dev, bool fatal)
|
||||
return fd;
|
||||
}
|
||||
|
||||
static int
|
||||
virPCIDeviceConfigOpen(virPCIDevicePtr dev, bool fatal)
|
||||
{
|
||||
return virPCIDeviceConfigOpenInternal(dev, fatal);
|
||||
}
|
||||
|
||||
static void
|
||||
virPCIDeviceConfigClose(virPCIDevicePtr dev, int cfgfd)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user