This function is needed by the network driver in a later commit.
It is useful in functions like networkNotifyActualDevice and
networkReleaseActualDevice
addr.function);
return 0;
}
+
+int
+virDevicePCIAddressEqual(virDevicePCIAddress addr1,
+ virDevicePCIAddress addr2)
+{
+ int ret = -1;
+
+ if (addr1.domain == addr2.domain &&
+ addr1.bus == addr2.bus &&
+ addr1.slot == addr2.slot &&
+ addr1.function == addr2.function) {
+ ret = 0;
+ }
+
+ return ret;
+}
virDevicePCIAddress addr,
bool includeTypeInAddr);
+int virDevicePCIAddressEqual(virDevicePCIAddress addr1,
+ virDevicePCIAddress addr2);
+
VIR_ENUM_DECL(virDeviceAddressPciMulti)
# device_conf.h
virDeviceAddressPciMultiTypeFromString;
virDeviceAddressPciMultiTypeToString;
+virDevicePCIAddressEqual;
virDevicePCIAddressFormat;
virDevicePCIAddressIsValid;
virDevicePCIAddressParseXML;