diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-06-11 21:46:24 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-06-11 21:46:24 +0300 |
commit | 9916712a62169606d845510028a3ea6f84bd442f (patch) | |
tree | aca4e1bec39500812111c43a8ecee862edae0002 /kms++/card.h | |
parent | 736b295100ce441e800457bcbd08cb36db543ff2 (diff) |
kms++: organize into subdirs
Diffstat (limited to 'kms++/card.h')
-rw-r--r-- | kms++/card.h | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/kms++/card.h b/kms++/card.h deleted file mode 100644 index 5ecaecf..0000000 --- a/kms++/card.h +++ /dev/null @@ -1,71 +0,0 @@ -#pragma once - -#include <cstdint> -#include <vector> -#include <map> - -#include "decls.h" -#include "pipeline.h" - -namespace kms -{ -class Card -{ - friend class Framebuffer; -public: - Card(); - Card(const std::string& device); - ~Card(); - - Card(const Card& other) = delete; - Card& operator=(const Card& other) = delete; - - int fd() const { return m_fd; } - - void drop_master(); - - Connector* get_first_connected_connector() const; - - DrmObject* get_object(uint32_t id) const; - Connector* get_connector(uint32_t id) const; - Crtc* get_crtc(uint32_t id) const; - Encoder* get_encoder(uint32_t id) const; - Plane* get_plane(uint32_t id) const; - Property* get_prop(uint32_t id) const; - Property* get_prop(const std::string& name) const; - - bool master() const { return m_master; } - bool has_atomic() const { return m_has_atomic; } - bool has_has_universal_planes() const { return m_has_universal_planes; } - - const std::vector<Connector*> get_connectors() const { return m_connectors; } - const std::vector<Encoder*> get_encoders() const { return m_encoders; } - const std::vector<Crtc*> get_crtcs() const { return m_crtcs; } - const std::vector<Plane*> get_planes() const { return m_planes; } - const std::vector<Property*> get_properties() const { return m_properties; } - - const std::vector<DrmObject*> get_objects() const; - - std::vector<Pipeline> get_connected_pipelines(); - - void call_page_flip_handlers(); - -private: - void restore_modes(); - - std::map<uint32_t, DrmObject*> m_obmap; - - std::vector<Connector*> m_connectors; - std::vector<Encoder*> m_encoders; - std::vector<Crtc*> m_crtcs; - std::vector<Plane*> m_planes; - std::vector<Property*> m_properties; - std::vector<Framebuffer*> m_framebuffers; - - int m_fd; - bool m_master; - - bool m_has_atomic; - bool m_has_universal_planes; -}; -} |