10#ifndef INCLUDED_VCL_DRIVERBLOCKLIST_HXX
11#define INCLUDED_VCL_DRIVERBLOCKLIST_HXX
29 std::u16string_view driverVersion, std::u16string_view
vendorId,
30 const OUString& deviceId);
96 bool bAllowListed =
false,
const char* suggestedVersion =
nullptr);
127 uint64_t getVersion(std::string_view rString);
146 std::u16string_view sDriverVersion,
147 std::u16string_view sAdapterVendorID,
148 OUString
const& sAdapterDeviceID,
150 const OUString& blocklistURL = OUString());
152#define GFX_DRIVER_VERSION(a, b, c, d) \
153 ((uint64_t(a) << 48) | (uint64_t(b) << 32) | (uint64_t(c) << 16) | uint64_t(d))
155inline uint64_t
OpenGLVersion(uint32_t a, uint32_t b, uint32_t c, uint32_t d)
160 while (b > 0 && b < 1000)
164 while (c > 0 && c < 1000)
168 while (
d > 0 &&
d < 1000)
const VersionType mVersionType
std::vector< DriverInfo > & mrDriverList
#define GFX_DRIVER_VERSION(a, b, c, d)
DeviceVendor GetVendorFromId(uint32_t id)
Returns vendor for the given vendor ID, or VendorAll if not known.
std::string_view GetVendorNameFromId(uint32_t id)
bool FindBlocklistedDeviceInList(std::vector< DriverInfo > &aDeviceInfos, VersionType versionType, std::u16string_view sDriverVersion, std::u16string_view sAdapterVendorID, OUString const &sAdapterDeviceID, OperatingSystem system, const OUString &blocklistURL)
const int DeviceVendorMax
@ DRIVER_OS_WINDOWS_FIRST
static OUString GetVendorId(std::string_view rString)
bool IsDeviceBlocked(const OUString &blocklistURL, VersionType versionType, std::u16string_view driverVersion, std::u16string_view vendorId, const OUString &deviceId)
@ DRIVER_BETWEEN_INCLUSIVE_START
@ DRIVER_BETWEEN_EXCLUSIVE
@ DRIVER_GREATER_THAN_OR_EQUAL
@ DRIVER_BETWEEN_INCLUSIVE
@ DRIVER_LESS_THAN_OR_EQUAL
@ DRIVER_COMPARISON_IGNORED
uint64_t OpenGLVersion(uint32_t a, uint32_t b, uint32_t c, uint32_t d)
VCL_DLLPUBLIC uint32_t vendorId
bool parse(OUString const &uri, SourceProviderScannerData *data)
std::vector< OUString > maDevices
OUString maSuggestedVersion
uint64_t mnDriverVersionMax
VersionComparisonOp meComparisonOp
OperatingSystem meOperatingSystem