summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJyri Sarha <jsarha@ti.com>2015-09-29 11:49:30 +0300
committerJyri Sarha <jsarha@ti.com>2015-09-29 12:30:28 +0300
commit6e337896d8912251a23c16765b265e3e26c176f9 (patch)
treeb7bac3f954fb22393e5296585efab586cc2b5712
parent72ae35660c451a9618dbabeefcbc4ec171482e07 (diff)
Make Connector::connected() const
Signed-off-by: Jyri Sarha <jsarha@ti.com>
-rw-r--r--libkms++/connector.cpp2
-rw-r--r--libkms++/connector.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libkms++/connector.cpp b/libkms++/connector.cpp
index d26d7e1..b045b8b 100644
--- a/libkms++/connector.cpp
+++ b/libkms++/connector.cpp
@@ -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;
}
diff --git a/libkms++/connector.h b/libkms++/connector.h
index b29c071..198a6dd 100644
--- a/libkms++/connector.h
+++ b/libkms++/connector.h
@@ -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;