diff options
Diffstat (limited to 'libhwc2.1/libdrmresource/include/drmproperty.h')
-rw-r--r-- | libhwc2.1/libdrmresource/include/drmproperty.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/libhwc2.1/libdrmresource/include/drmproperty.h b/libhwc2.1/libdrmresource/include/drmproperty.h index 2c4eb7a..7cc6f91 100644 --- a/libhwc2.1/libdrmresource/include/drmproperty.h +++ b/libhwc2.1/libdrmresource/include/drmproperty.h @@ -41,21 +41,24 @@ class DrmProperty { DrmProperty(const DrmProperty &) = delete; DrmProperty &operator=(const DrmProperty &) = delete; - void Init(drmModePropertyPtr p, uint64_t value); - void SetName(std::string name) { name_ = name; }; - std::tuple<uint64_t, int> GetEnumValueWithName(std::string name) const; + void init(drmModePropertyPtr p, uint64_t value); + void setName(std::string name) { name_ = name; }; + std::tuple<uint64_t, int> getEnumValueWithName(std::string name) const; uint32_t id() const; std::string name() const; std::tuple<int, uint64_t> value() const; - bool is_immutable() const; + bool isImmutable() const; + bool isRange() const; + bool isSignedRange() const; + bool isBitmask() const; - bool is_range() const; - std::tuple<int, uint64_t> range_min() const; - std::tuple<int, uint64_t> range_max() const; + std::tuple<int, uint64_t> rangeMin() const; + std::tuple<int, uint64_t> rangeMax() const; - void UpdateValue(const uint64_t value); + bool validateChange(uint64_t value) const; + void updateValue(const uint64_t value); void printProperty() const; private: |