nvmed: Expose supported log pages to plugins

Add wrapper methods to NVMeControllerPlugin to allow plugins to access
list of supported log pages.

Google-Bug-Id: 439944420
Tested: https://paste.googleplex.com/6118243321380864
Change-Id: Ie0c1505c032546cba782cd49163cdca8f387e150
Signed-off-by: Agrim Bharat <agrimbharat@google.com>
diff --git a/src/NVMePlugin.cpp b/src/NVMePlugin.cpp
index 702065c..1d7a2b1 100644
--- a/src/NVMePlugin.cpp
+++ b/src/NVMePlugin.cpp
@@ -51,6 +51,11 @@
     pluginMetricFunctions.erase(getPath());
 }
 
+bool NVMeControllerPlugin::isLogPageSupported(uint8_t lid) const
+{
+    return nvmeController->isLogPageSupported(lid);
+}
+
 const std::string& NVMePlugin::getPath() const
 {
     return subsystem->path;
diff --git a/src/NVMePlugin.hpp b/src/NVMePlugin.hpp
index 88ed189..2f7bce3 100644
--- a/src/NVMePlugin.hpp
+++ b/src/NVMePlugin.hpp
@@ -91,6 +91,14 @@
      */
     uint16_t getCntrlId() const;
 
+    /**
+     * @brief Check if log page is supported for the binded NVMe controller
+     *
+     * @param lid log page identifier
+     * @return true if supported, false otherwise
+     */
+    bool isLogPageSupported(uint8_t lid) const;
+
   private:
     std::shared_ptr<NVMeController> nvmeController;
 };