15 #include <string_view> 18 #include <xf86drmMode.h> 34 std::string GetTypeName()
const;
35 std::string GetPropertyName(uint32_t propertyId)
const;
37 uint32_t GetId()
const {
return m_id; }
38 uint32_t GetPropertyId(
const std::string& name)
const;
39 std::optional<uint64_t> GetPropertyValue(std::string_view name, std::string_view valueName)
const;
41 bool SetProperty(
const std::string& name, uint64_t value);
42 bool SupportsProperty(
const std::string& name);
47 bool GetProperties(uint32_t
id, uint32_t type);
51 void operator()(drmModeObjectProperties* p) { drmModeFreeObjectProperties(p); }
54 std::unique_ptr<drmModeObjectProperties, DrmModeObjectPropertiesDeleter> m_props;
58 void operator()(drmModePropertyRes* p) { drmModeFreeProperty(p); }
61 std::vector<std::unique_ptr<drmModePropertyRes, DrmModePropertyResDeleter>> m_propsInfo;
Definition: DRMObject.h:56
Definition: DRMObject.h:27
Definition: DRMObject.h:49
Definition: AudioDecoder.h:18