summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-08-12 15:13:53 +0200
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-08-12 15:17:03 +0200
commitfcd271dd1b5140d13135c0c3602e9b5ad5d9f6cc (patch)
tree37031440eb163178845f9c453714ca6a4ea90ecb
parent8ef5a7c89db166170b84822791b702da163dc0d9 (diff)
downloadenlightenment-fcd271dd1b5140d13135c0c3602e9b5ad5d9f6cc.tar.gz
e_comp_wl: move types into typedef section
WIth this we dont need a second define of the same type in e_comp.h This fixes a duplicated definition warning
-rw-r--r--src/bin/e_comp.h1
-rw-r--r--src/bin/e_comp_wl.h20
2 files changed, 10 insertions, 11 deletions
diff --git a/src/bin/e_comp.h b/src/bin/e_comp.h
index 48e2f21dec..881a7eaf4f 100644
--- a/src/bin/e_comp.h
+++ b/src/bin/e_comp.h
@@ -4,7 +4,6 @@ typedef struct _E_Comp E_Comp;
#ifdef E_COMP_WL
typedef struct _E_Comp_Wl_Client_Data E_Comp_Client_Data;
#endif
-typedef struct _E_Comp_Wl_Data E_Comp_Wl_Data;
#ifdef E_COMP_X
typedef struct _E_Comp_X_Client_Data E_Comp_Client_Data;
diff --git a/src/bin/e_comp_wl.h b/src/bin/e_comp_wl.h
index d01acdc3ef..fe4d1a149c 100644
--- a/src/bin/e_comp_wl.h
+++ b/src/bin/e_comp_wl.h
@@ -1,4 +1,14 @@
#ifdef E_TYPEDEFS
+typedef struct _E_Comp_Wl_Aux_Hint E_Comp_Wl_Aux_Hint;
+typedef struct _E_Comp_Wl_Buffer E_Comp_Wl_Buffer;
+typedef struct _E_Comp_Wl_Subsurf_Data E_Comp_Wl_Subsurf_Data;
+typedef struct _E_Comp_Wl_Surface_State E_Comp_Wl_Surface_State;
+typedef struct _E_Comp_Wl_Client_Data E_Comp_Wl_Client_Data;
+typedef struct _E_Comp_Wl_Data E_Comp_Wl_Data;
+typedef struct _E_Comp_Wl_Output E_Comp_Wl_Output;
+typedef struct E_Shell_Data E_Shell_Data;
+typedef struct Tizen_Extensions Tizen_Extensions;
+typedef void (*E_Comp_Wl_Grab_End_Cb)(E_Client*);
#else
# ifndef E_COMP_WL_H
# define E_COMP_WL_H
@@ -38,16 +48,6 @@
const __typeof__( ((type *)0)->member ) *__mptr = (ptr); \
(type *)(void *)( (char *)__mptr - offsetof(type,member) ); \
})
-typedef struct _E_Comp_Wl_Aux_Hint E_Comp_Wl_Aux_Hint;
-typedef struct _E_Comp_Wl_Buffer E_Comp_Wl_Buffer;
-typedef struct _E_Comp_Wl_Subsurf_Data E_Comp_Wl_Subsurf_Data;
-typedef struct _E_Comp_Wl_Surface_State E_Comp_Wl_Surface_State;
-typedef struct _E_Comp_Wl_Client_Data E_Comp_Wl_Client_Data;
-typedef struct _E_Comp_Wl_Data E_Comp_Wl_Data;
-typedef struct _E_Comp_Wl_Output E_Comp_Wl_Output;
-typedef struct E_Shell_Data E_Shell_Data;
-typedef struct Tizen_Extensions Tizen_Extensions;
-typedef void (*E_Comp_Wl_Grab_End_Cb)(E_Client*);
struct _E_Comp_Wl_Aux_Hint
{