card: add get_crtcs()
[android/external-libkmsxx.git] / libkms++ / card.h
index ac0cba4455f09f11d829c41221dba484a7ed8f9e..dc97703f2d5e18c2845adab9812b820f2ace6748 100644 (file)
@@ -23,11 +23,12 @@ public:
        Connector* get_first_connected_connector() const;
 
        DrmObject* get_object(uint32_t id) const;
        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;
        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; }
 
        bool master() const { return m_master; }
        bool has_atomic() const { return m_has_atomic; }
@@ -36,11 +37,14 @@ public:
        void print_short() const;
 
        std::vector<Connector*> get_connectors() const;
        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();
 
        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();
 
 private:
        void restore_modes();