+// Set of supported SCSI VPD pages. Constructor fetches Supported VPD pages
+// VPD page and remembers the response for later queries.
+class supported_vpd_pages
+{
+public:
+ supported_vpd_pages(scsi_device * device);
+ ~supported_vpd_pages() { num_valid = 0; }
+
+ bool is_supported(int vpd_page_num) const;
+
+ /* Returns 0 or less for VPD pages not supported or error */
+ int num_pages() const { return num_valid; }
+
+private:
+ int num_valid; /* 0 or less for invalid */
+ unsigned char pages[256];
+};
+
+extern supported_vpd_pages * supported_vpd_pages_p;
+
+