use friend class and hide methods
[android/external-libkmsxx.git] / libkms++ / plane.h
index 890a28fdfc9b77c127d84c434f81742c8300791d..671e1508964b7b6cf9b14f3a85db9a392eec4dce 100644 (file)
@@ -16,10 +16,8 @@ struct PlanePriv;
 
 class Plane : public DrmObject
 {
+       friend class Card;
 public:
-       Plane(Card& card, uint32_t id);
-       ~Plane();
-
        void print_short() const;
 
        bool supports_crtc(Crtc* crtc) const;
@@ -27,6 +25,9 @@ public:
        PlaneType plane_type() const;
 
 private:
+       Plane(Card& card, uint32_t id);
+       ~Plane();
+
        PlanePriv* m_priv;
 };
 }