use friend class and hide methods
[android/external-libkmsxx.git] / libkms++ / crtc.h
index ac05da9a0fc5fdd527bb9597acff737b0abc5674..d30d4972dda0113fbbbbdf2514b3428ce9d56d29 100644 (file)
@@ -11,12 +11,8 @@ struct CrtcPriv;
 
 class Crtc : public DrmObject
 {
+       friend class Card;
 public:
-       Crtc(Card& card, uint32_t id, uint32_t idx);
-       ~Crtc();
-
-       void setup();
-
        void print_short() const;
 
        const std::vector<Plane*>& get_possible_planes() const { return m_possible_planes; }
@@ -27,7 +23,14 @@ public:
                      int32_t dst_x, int32_t dst_y, uint32_t dst_w, uint32_t dst_h,
                      float src_x, float src_y, float src_w, float src_h);
 
+       int page_flip(Framebuffer& fb, void *data);
+
 private:
+       Crtc(Card& card, uint32_t id, uint32_t idx);
+       ~Crtc();
+
+       void setup();
+
        CrtcPriv* m_priv;
 
        std::vector<Plane*> m_possible_planes;