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:
Ján Tomko 2019-08-13 14:58:25 +02:00
parent 257f96eb1e
commit fc16c69987

View File

@ -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)
{