use friend class and hide methods
[android/external-libkmsxx.git] / libkms++ / encoder.h
index 3e9a8e46c2bff96df3b0f6e9797abd2522390c83..77e4e3e77001ea57fe6eff0f53e6f226aa91a4a3 100644 (file)
@@ -10,16 +10,17 @@ struct EncoderPriv;
 
 class Encoder : public DrmObject
 {
 
 class Encoder : public DrmObject
 {
+       friend class Card;
 public:
 public:
-       Encoder(Card& card, uint32_t id);
-       ~Encoder();
-
        void print_short() const;
 
        Crtc* get_crtc() const;
        std::vector<Crtc*> get_possible_crtcs() const;
 
 private:
        void print_short() const;
 
        Crtc* get_crtc() const;
        std::vector<Crtc*> get_possible_crtcs() const;
 
 private:
+       Encoder(Card& card, uint32_t id);
+       ~Encoder();
+
        EncoderPriv* m_priv;
 };
 }
        EncoderPriv* m_priv;
 };
 }