use friend class and hide methods
[android/external-libkmsxx.git] / libkms++ / crtc.h
index fabc6e250d3314f3fead222a1f7cf9beb71e658c..d30d4972dda0113fbbbbdf2514b3428ce9d56d29 100644 (file)
@@ -11,12 +11,8 @@ struct CrtcPriv;
 
 class Crtc : public DrmObject
 {
 
 class Crtc : public DrmObject
 {
+       friend class Card;
 public:
 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; }
        void print_short() const;
 
        const std::vector<Plane*>& get_possible_planes() const { return m_possible_planes; }
@@ -30,6 +26,11 @@ public:
        int page_flip(Framebuffer& fb, void *data);
 
 private:
        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;
        CrtcPriv* m_priv;
 
        std::vector<Plane*> m_possible_planes;