summaryrefslogtreecommitdiff
path: root/kms++/inc
diff options
context:
space:
mode:
Diffstat (limited to 'kms++/inc')
-rw-r--r--kms++/inc/kms++/connector.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/kms++/inc/kms++/connector.h b/kms++/inc/kms++/connector.h
index 3407730..155f916 100644
--- a/kms++/inc/kms++/connector.h
+++ b/kms++/inc/kms++/connector.h
@@ -10,6 +10,13 @@ namespace kms
struct ConnectorPriv;
+enum class ConnectorStatus
+{
+ Unknown,
+ Connected,
+ Disconnected,
+};
+
class Connector : public DrmPropObject
{
friend class Card;
@@ -24,7 +31,9 @@ public:
Crtc* get_current_crtc() const;
std::vector<Crtc*> get_possible_crtcs() const;
+ // true if connected or unknown
bool connected() const;
+ ConnectorStatus connector_status() const;
const std::string& fullname() const { return m_fullname; }
uint32_t connector_type() const;