This function has utility outside of virpci.c, so make it public.
---
src/libvirt_private.syms | 1 +
src/util/virpci.c | 2 +-
src/util/virpci.h | 2 ++
3 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index b7a59ec..2f8f202 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -1688,6 +1688,7 @@ virPCIGetVirtualFunctionIndex;
virPCIGetVirtualFunctionInfo;
virPCIGetVirtualFunctions;
virPCIIsVirtualFunction;
+virPCIParseDeviceAddress;
# util/virpidfile.h
diff --git a/src/util/virpci.c b/src/util/virpci.c
index 23cff09..c34f872 100644
--- a/src/util/virpci.c
+++ b/src/util/virpci.c
@@ -2055,7 +2055,7 @@ logStrToLong_ui(char const *s,
return ret;
}
-static int
+int
virPCIParseDeviceAddress(char *address,
virPCIDeviceAddressPtr bdf)
{
diff --git a/src/util/virpci.h b/src/util/virpci.h
index 89717b8..bcf1b81 100644
--- a/src/util/virpci.h
+++ b/src/util/virpci.h
@@ -152,6 +152,8 @@ int virPCIGetAddrString(unsigned int domain,
char **pciConfigAddr)
ATTRIBUTE_NONNULL(5) ATTRIBUTE_RETURN_CHECK;
+int virPCIParseDeviceAddress(char *address, virPCIDeviceAddressPtr bdf);
+
int virPCIGetVirtualFunctionInfo(const char *vf_sysfs_device_path,
char **pfname, int *vf_index);
--
1.7.11.7