提交 fc16c699 编写于 作者: J Ján Tomko

util: introduce virPCIDeviceConfigOpenInternal

A thin wrapper to allow creating new functions.
Signed-off-by: NJán Tomko <jtomko@redhat.com>
Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
上级 257f96eb
......@@ -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)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册