card: add get_crtcs()
[android/external-libkmsxx.git] / libkms++ / card.h
index a8db76f50697919edcf1785e697c72876b310311..dc97703f2d5e18c2845adab9812b820f2ace6748 100644 (file)
@@ -23,11 +23,12 @@ public:
        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;
        Crtc* get_crtc_by_index(uint32_t idx) const;
        Encoder* get_encoder(uint32_t id) const;
        Property* get_prop(uint32_t id) const;
-       Property* get_prop(const char *name) const;
+       Property* get_prop(const std::string& name) const;
 
        bool master() const { return m_master; }
        bool has_atomic() const { return m_has_atomic; }
@@ -36,12 +37,17 @@ public:
        void print_short() const;
 
        std::vector<Connector*> get_connectors() const;
+       std::vector<Crtc*> get_crtcs() const;
        std::vector<DrmObject*> get_objects() const;
        std::vector<Plane*> get_planes() const;
 
        std::vector<Pipeline> get_connected_pipelines();
 
+       void call_page_flip_handlers();
+
 private:
+       void restore_modes();
+
        std::map<uint32_t, DrmObject*> m_obmap;
 
        int m_fd;