Make Connector::connected() const
authorJyri Sarha <jsarha@ti.com>
Tue, 29 Sep 2015 08:49:30 +0000 (11:49 +0300)
committerJyri Sarha <jsarha@ti.com>
Tue, 29 Sep 2015 09:30:28 +0000 (12:30 +0300)
Signed-off-by: Jyri Sarha <jsarha@ti.com>
libkms++/connector.cpp
libkms++/connector.h

index d26d7e16267f6b780fdaae1ab13b09b97d1018bc..b045b8bdc21284df118bc360de0798724fada686 100644 (file)
@@ -101,7 +101,7 @@ Videomode Connector::get_mode(const char *mode) const
         throw invalid_argument((sMode + ": mode not found").c_str());
 }
 
-bool Connector::connected()
+bool Connector::connected() const
 {
        return m_priv->drm_connector->connection == DRM_MODE_CONNECTED;
 }
index b29c0714491d4e5c0c69880e5470320b79cd633b..198a6dd17f57d4634d26ac4acca06300574584ee 100644 (file)
@@ -39,7 +39,7 @@ public:
        Crtc* get_current_crtc() const { return m_current_crtc; }
        std::vector<Crtc*> get_possible_crtcs() const;
 
-       bool connected();
+       bool connected() const;
 
 private:
        ConnectorPriv* m_priv;