So we can determine if it's connected or not.
BUG=chrome-os-partner:41682
TEST=Tested on ryu with DP
Change-Id: Ie0dadb2737d3a98257fb6e4fa02f17d7dae44f6c
Signed-off-by: Sean Paul <seanpaul@chromium.org>
return -ENODEV;
}
+ state_ = c->connection;
+
std::vector<DrmMode> new_modes;
for (int i = 0; i < c->count_modes; ++i) {
bool exists = false;
encoder_ = encoder;
}
+drmModeConnection DrmConnector::state() const {
+ return state_;
+}
+
uint32_t DrmConnector::mm_width() const {
return mm_width_;
}
DrmEncoder *encoder() const;
void set_encoder(DrmEncoder *encoder);
+ drmModeConnection state() const;
+
uint32_t mm_width() const;
uint32_t mm_height() const;