aboutsummaryrefslogtreecommitdiff
path: root/drmproperty.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'drmproperty.cpp')
-rw-r--r--drmproperty.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/drmproperty.cpp b/drmproperty.cpp
index dcab05e..9faa37e 100644
--- a/drmproperty.cpp
+++ b/drmproperty.cpp
@@ -100,6 +100,10 @@ int DrmProperty::value(uint64_t *value) const {
}
}
+bool DrmProperty::immutable() const {
+ return id_ && (flags_ & DRM_MODE_PROP_IMMUTABLE);
+}
+
std::tuple<uint64_t, int> DrmProperty::GetEnumValueWithName(
std::string name) const {
for (auto it : enums_) {