ecore_wl2: Make Ecore_Wl2_Buffer struct private

Nothing needs these members anymore.  If need arises in the future then
proper getter/setter functions can be added.
This commit is contained in:
Derek Foreman 2017-11-30 13:15:15 -06:00
parent 8a3b983c53
commit 4f63f327b0
2 changed files with 19 additions and 19 deletions

View 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

View 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;