ecore_wl2: Make Ecore_Wl2_Buffer struct private
authorDerek Foreman <derekf@osg.samsung.com>
Thu, 30 Nov 2017 19:15:15 +0000 (13:15 -0600)
committerDerek Foreman <derekf@osg.samsung.com>
Fri, 1 Dec 2017 16:58:44 +0000 (10:58 -0600)
Nothing needs these members anymore.  If need arises in the future then
proper getter/setter functions can be added.

src/lib/ecore_wl2/Ecore_Wl2.h
src/lib/ecore_wl2/ecore_wl2_private.h

index b063983..5e60313 100644 (file)
@@ -360,26 +360,7 @@ typedef struct Ecore_Wl2_Event_Aux_Message
    Ecore_Wl2_Display *display;
 } Ecore_Wl2_Event_Aux_Message;
 
-/* THIS WILL BE PRIVATE SHORTLY, DO NOT USE */
-typedef struct _Buffer_Handle Buffer_Handle;
 typedef struct _Ecore_Wl2_Buffer Ecore_Wl2_Buffer;
-struct _Ecore_Wl2_Buffer
-{
-   struct wl_buffer *wl_buffer;
-   int size;
-   int w, h;
-   int age;
-   unsigned long stride;
-   Buffer_Handle *bh;
-   int fd;
-   void *mapping;
-
-   int index;
-   Eina_Bool locked : 1;
-   Eina_Bool busy : 1;
-   Eina_Bool orphaned : 1;
-   Eina_Bool alpha : 1;
-};
 
 typedef enum _Ecore_Wl2_Buffer_Type Ecore_Wl2_Buffer_Type;
 enum _Ecore_Wl2_Buffer_Type
index 8b87cff..8e1c2fb 100644 (file)
@@ -523,6 +523,25 @@ typedef struct Ecore_Wl2_Event_Window_WWW_Drag
    Eina_Bool dragging;
 } Ecore_Wl2_Event_Window_WWW_Drag;
 
+typedef struct _Buffer_Handle Buffer_Handle;
+typedef struct _Ecore_Wl2_Buffer
+{
+   struct wl_buffer *wl_buffer;
+   int size;
+   int w, h;
+   int age;
+   unsigned long stride;
+   Buffer_Handle *bh;
+   int fd;
+   void *mapping;
+
+   int index;
+   Eina_Bool locked : 1;
+   Eina_Bool busy : 1;
+   Eina_Bool orphaned : 1;
+   Eina_Bool alpha : 1;
+} Ecore_Wl2_Buffer;
+
 typedef struct _Ecore_Wl2_Surface
 {
    Ecore_Wl2_Window *wl2_win;