summaryrefslogtreecommitdiff
path: root/src/lib/ecore
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-10 02:18:10 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-10 02:18:10 +0000
commit532284dbbe4259a9f2291f44d3eff376849e8031 (patch)
tree17ea441edf31210f852f2067f23d41320d52eefa /src/lib/ecore
parent7b0ae69adcb1314c3b2a87f69d7634e357820d1c (diff)
efl: forward typedef to avoid including useless headers.
do not include Ecore_Input.h just to get Ecore_Window and Ecore_Getopt to get handful typedefs. NOTE: why do we have the #ifdefs around these predefs? At least GCC does not warn if we typedef twice the same thing (if they are identical) SVN revision: 82499
Diffstat (limited to 'src/lib/ecore')
-rw-r--r--src/lib/ecore/Ecore_Getopt.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/lib/ecore/Ecore_Getopt.h b/src/lib/ecore/Ecore_Getopt.h
index 3574ba5bfa..d4ce3aa709 100644
--- a/src/lib/ecore/Ecore_Getopt.h
+++ b/src/lib/ecore/Ecore_Getopt.h
@@ -86,12 +86,21 @@ typedef enum {
86 ECORE_GETOPT_DESC_ARG_REQUIREMENT_OPTIONAL = 3 86 ECORE_GETOPT_DESC_ARG_REQUIREMENT_OPTIONAL = 3
87} Ecore_Getopt_Desc_Arg_Requirement; 87} Ecore_Getopt_Desc_Arg_Requirement;
88 88
89typedef union _Ecore_Getopt_Value Ecore_Getopt_Value;
90
91typedef struct _Ecore_Getopt_Desc_Store Ecore_Getopt_Desc_Store; 89typedef struct _Ecore_Getopt_Desc_Store Ecore_Getopt_Desc_Store;
92typedef struct _Ecore_Getopt_Desc_Callback Ecore_Getopt_Desc_Callback; 90typedef struct _Ecore_Getopt_Desc_Callback Ecore_Getopt_Desc_Callback;
93typedef struct _Ecore_Getopt_Desc Ecore_Getopt_Desc; 91
94typedef struct _Ecore_Getopt Ecore_Getopt; 92#ifndef _ECORE_GETOPT_PREDEF
93typedef struct _Ecore_Getopt Ecore_Getopt;
94#define _ECORE_GETOPT_PREDEF 1
95#endif
96#ifndef _ECORE_GETOPT_DESC_PREDEF
97typedef struct _Ecore_Getopt_Desc Ecore_Getopt_Desc;
98#define _ECORE_GETOPT_DESC_PREDEF 1
99#endif
100#ifndef _ECORE_GETOPT_VALUE_PREDEF
101typedef union _Ecore_Getopt_Value Ecore_Getopt_Value;
102#define _ECORE_GETOPT_VALUE_PREDEF 1
103#endif
95 104
96union _Ecore_Getopt_Value 105union _Ecore_Getopt_Value
97{ 106{