add static functions to get a private __d_func(). 18/241618/1
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 14 Jul 2020 02:39:07 +0000 (11:39 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Thu, 20 Aug 2020 09:53:48 +0000 (18:53 +0900)
Change-Id: I89390461c400dcf703d310e3bb617ce728722a74

src/DSCanvas/DSCanvasPrivate.h
src/DSCompositor/DSCompositorPrivate.h
src/DSDisplayArea/DSDisplayAreaPrivate.h
src/DSPolicyArea/DSPolicyAreaPrivate.h

index faef7e8..85db0f9 100644 (file)
@@ -15,6 +15,7 @@ public:
        DSCanvasPrivate(DSCanvas *p_ptr);
        ~DSCanvasPrivate();
 
+       static DSCanvasPrivate *getPrivate(DSCanvas *q) { return q->__d_func(); }
        bool attachPolicyArea(std::shared_ptr<DSPolicyArea> polcyArea);
        bool attachDisplayArea(std::shared_ptr<DSDisplayArea> displayArea);
 
index 2e266e6..ab6601c 100644 (file)
@@ -20,6 +20,7 @@ public:
        DSCompositorPrivate(DSCompositor *p_ptr);
        ~DSCompositorPrivate();
 
+       static DSCompositorPrivate *getPrivate(DSCompositor *q) { return q->__d_func(); }
        bool run();
        bool quit();
 
index e397b2d..3b8351a 100644 (file)
@@ -16,6 +16,7 @@ public:
        DSDisplayAreaPrivate(DSDisplayArea *p_ptr, std::shared_ptr<IDSOutput> output);
        virtual ~DSDisplayAreaPrivate();
 
+       static DSDisplayAreaPrivate *getPrivate(DSDisplayArea *q) { return q->__d_func(); }
        bool setPosition(int x, int y);
        bool setSize(int width, int height);
        int getWidth();
index dc0077c..6454d7f 100644 (file)
@@ -14,6 +14,7 @@ public:
        DSPolicyAreaPrivate(DSPolicyArea *p_ptr);
        virtual ~DSPolicyAreaPrivate();
 
+       static DSPolicyAreaPrivate *getPrivate(DSPolicyArea *q) { return q->__d_func(); }
        bool setPosition(int x, int y);
        bool setSize(int width, int height);
        bool attachSeat(std::shared_ptr<DSSeat> seat);