[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 1/5] util: introduce virPCIDeviceConfigOpenInternal



A thin wrapper to allow creating new functions.

Signed-off-by: Ján Tomko <jtomko redhat com>
---
 src/util/virpci.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/util/virpci.c b/src/util/virpci.c
index 61a6b359e5..f4be907a10 100644
--- a/src/util/virpci.c
+++ b/src/util/virpci.c
@@ -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)
 {
-- 
2.20.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]