]> xenbits.xensource.com Git - libvirt.git/commitdiff
pci: rename virPCIParseDeviceAddress and make it public
authorLaine Stump <laine@laine.org>
Mon, 17 Jun 2013 15:57:19 +0000 (11:57 -0400)
committerLaine Stump <laine@laine.org>
Tue, 25 Jun 2013 22:07:38 +0000 (18:07 -0400)
This function has utility outside of virpci.c, so make it public.

Also the name didn't fit convention, so change it to
virPCIDeviceAddressParse.

src/libvirt_private.syms
src/util/virpci.c
src/util/virpci.h

index bad3947445a8595b7ec52f2433924f1ecccba163..4c5f5a33e55e9b07741c27399066ef2ba5d280ba 100644 (file)
@@ -1694,6 +1694,7 @@ virObjectUnref;
 
 # util/virpci.h
 virPCIDeviceAddressGetSysfsFile;
+virPCIDeviceAddressParse;
 virPCIDeviceCopy;
 virPCIDeviceDetach;
 virPCIDeviceFileIterate;
index 51fad784fd6870074e779c492675e94b54b6d6e0..92f27d93c61437035008a49ddbf8f2ec7ee14887 100644 (file)
@@ -2046,8 +2046,8 @@ logStrToLong_ui(char const *s,
     return ret;
 }
 
-static int
-virPCIParseDeviceAddress(char *address,
+int
+virPCIDeviceAddressParse(char *address,
                          virPCIDeviceAddressPtr bdf)
 {
     char *p = NULL;
@@ -2111,7 +2111,7 @@ virPCIGetDeviceAddressFromSysfsLink(const char *device_link,
         goto out;
     }
 
-    if (virPCIParseDeviceAddress(config_address, *bdf) != 0) {
+    if (virPCIDeviceAddressParse(config_address, *bdf) != 0) {
         virReportError(VIR_ERR_INTERNAL_ERROR,
                        _("Failed to parse PCI config address '%s'"),
                        config_address);
index 89717b828d7442afdea8cbca7f0da2e036662f27..fe474e2c48aa87b6b5a7d01327b709f7358bc29f 100644 (file)
@@ -152,6 +152,8 @@ int virPCIGetAddrString(unsigned int domain,
                         char **pciConfigAddr)
     ATTRIBUTE_NONNULL(5) ATTRIBUTE_RETURN_CHECK;
 
+int virPCIDeviceAddressParse(char *address, virPCIDeviceAddressPtr bdf);
+
 int virPCIGetVirtualFunctionInfo(const char *vf_sysfs_device_path,
                                  char **pfname, int *vf_index);