summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2005-12-27 17:17:31 +0000
committerCarsten Haitzler <raster@rasterman.com>2005-12-27 17:17:31 +0000
commit7554f8ee360ae75ace0a46ca079de7e5a28dba2b (patch)
treeac5a69b333e40cc14c366a7226c1bd05687bec1b /legacy
parentcdebf436cf3353ab658a37d9e468f8bd0de6a19c (diff)
actually make symbol hiding work!
SVN revision: 19314
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore/Ecore.h8
-rw-r--r--legacy/ecore/src/lib/ecore/Ecore_Data.h273
-rw-r--r--legacy/ecore/src/lib/ecore/ecore_private.h43
-rw-r--r--legacy/ecore/src/lib/ecore/ecore_value.c2
-rw-r--r--legacy/ecore/src/lib/ecore_con/Ecore_Con.h24
-rw-r--r--legacy/ecore/src/lib/ecore_config/Ecore_Config.h16
-rw-r--r--legacy/ecore/src/lib/ecore_dbus/Ecore_DBus.h14
-rw-r--r--legacy/ecore/src/lib/ecore_directfb/Ecore_DirectFB.h36
-rw-r--r--legacy/ecore/src/lib/ecore_evas/Ecore_Evas.h8
-rw-r--r--legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h18
-rw-r--r--legacy/ecore/src/lib/ecore_file/Ecore_File.h8
-rw-r--r--legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h20
-rw-r--r--legacy/ecore/src/lib/ecore_job/Ecore_Job.h8
-rw-r--r--legacy/ecore/src/lib/ecore_txt/Ecore_Txt.h8
-rw-r--r--legacy/ecore/src/lib/ecore_x/Ecore_X.h158
-rw-r--r--legacy/ecore/src/lib/ecore_x/Ecore_X_Atoms.h254
-rw-r--r--legacy/edje/src/bin/edje_cc.h14
-rw-r--r--legacy/edje/src/bin/edje_cc_parse.c4
-rw-r--r--legacy/edje/src/bin/edje_main.h14
-rw-r--r--legacy/edje/src/lib/Edje.h8
-rw-r--r--legacy/edje/src/lib/edje_private.h60
-rw-r--r--legacy/eet/src/lib/Eet.h17
-rw-r--r--legacy/eet/src/lib/eet_data.c24
-rw-r--r--legacy/eet/src/lib/eet_image.c18
-rw-r--r--legacy/eet/src/lib/eet_lib.c28
-rw-r--r--legacy/eet/src/lib/eet_memfile.c6
-rw-r--r--legacy/embryo/src/lib/Embryo.h8
-rw-r--r--legacy/embryo/src/lib/embryo_private.h6
-rw-r--r--legacy/evas/src/lib/Evas.h8
-rw-r--r--legacy/evas/src/lib/include/evas_common.h10
-rw-r--r--legacy/evas/src/lib/main.c1
31 files changed, 655 insertions, 469 deletions
diff --git a/legacy/ecore/src/lib/ecore/Ecore.h b/legacy/ecore/src/lib/ecore/Ecore.h
index dfbfc72ce1..77d199a7f6 100644
--- a/legacy/ecore/src/lib/ecore/Ecore.h
+++ b/legacy/ecore/src/lib/ecore/Ecore.h
@@ -11,8 +11,12 @@
11# define EAPI __declspec(dllimport) 11# define EAPI __declspec(dllimport)
12# endif 12# endif
13#else 13#else
14# ifdef GCC_HASCLASSVISIBILITY 14# ifdef __GNUC__
15# define EAPI __attribute__ ((visibility("default"))) 15# if __GNUC__ >= 4
16# define EAPI __attribute__ ((visibility("default")))
17# else
18# define EAPI
19# endif
16# else 20# else
17# define EAPI 21# define EAPI
18# endif 22# endif
diff --git a/legacy/ecore/src/lib/ecore/Ecore_Data.h b/legacy/ecore/src/lib/ecore/Ecore_Data.h
index c1333bd063..37ef4c05c7 100644
--- a/legacy/ecore/src/lib/ecore/Ecore_Data.h
+++ b/legacy/ecore/src/lib/ecore/Ecore_Data.h
@@ -1,6 +1,27 @@
1#ifndef _ECORE_DATA_H 1#ifndef _ECORE_DATA_H
2# define _ECORE_DATA_H 2# define _ECORE_DATA_H
3 3
4#ifdef EAPI
5#undef EAPI
6#endif
7#ifdef WIN32
8# ifdef BUILDING_DLL
9# define EAPI __declspec(dllexport)
10# else
11# define EAPI __declspec(dllimport)
12# endif
13#else
14# ifdef __GNUC__
15# if __GNUC__ >= 4
16# define EAPI __attribute__ ((visibility("default")))
17# else
18# define EAPI
19# endif
20# else
21# define EAPI
22# endif
23#endif
24
4/** 25/**
5 * @file Ecore_Data.h 26 * @file Ecore_Data.h
6 * @brief Contains threading, list, hash, debugging and tree functions. 27 * @brief Contains threading, list, hash, debugging and tree functions.
@@ -10,14 +31,14 @@
10extern "C" { 31extern "C" {
11# endif 32# endif
12 33
13#ifdef __sgi 34# ifdef __sgi
14#define __FUNCTION__ "unknown" 35# define __FUNCTION__ "unknown"
15#ifndef __cplusplus 36# ifndef __cplusplus
16#define inline 37# define inline
17#endif 38# endif
18#endif 39# endif
19 40
20 extern const unsigned int ecore_prime_table[]; 41 EAPI extern const unsigned int ecore_prime_table[];
21 42
22 typedef void (*Ecore_For_Each) (void *value, void *user_data); 43 typedef void (*Ecore_For_Each) (void *value, void *user_data);
23# define ECORE_FOR_EACH(function) ((Ecore_For_Each)function) 44# define ECORE_FOR_EACH(function) ((Ecore_For_Each)function)
@@ -31,13 +52,6 @@ extern "C" {
31 typedef int (*Ecore_Compare_Cb) (void *data1, void *data2); 52 typedef int (*Ecore_Compare_Cb) (void *data1, void *data2);
32# define ECORE_COMPARE_CB(function) ((Ecore_Compare_Cb)function) 53# define ECORE_COMPARE_CB(function) ((Ecore_Compare_Cb)function)
33 54
34 int ecore_direct_compare(void *key1, void *key2);
35 int ecore_str_compare(void *key1, void *key2);
36
37 unsigned int ecore_direct_hash(void *key);
38 unsigned int ecore_str_hash(void *key);
39
40
41# ifdef HAVE_PTHREADS /* pthreads are installed */ 55# ifdef HAVE_PTHREADS /* pthreads are installed */
42 56
43# include <pthread.h> 57# include <pthread.h>
@@ -144,54 +158,59 @@ extern "C" {
144 ECORE_DECLARE_LOCKS; 158 ECORE_DECLARE_LOCKS;
145 }; 159 };
146 160
161 EAPI int ecore_direct_compare(void *key1, void *key2);
162 EAPI int ecore_str_compare(void *key1, void *key2);
163
164 EAPI unsigned int ecore_direct_hash(void *key);
165 EAPI unsigned int ecore_str_hash(void *key);
147 166
148 /* Creating and initializing new list structures */ 167 /* Creating and initializing new list structures */
149 Ecore_List *ecore_list_new(void); 168 EAPI Ecore_List *ecore_list_new(void);
150 int ecore_list_init(Ecore_List *list); 169 EAPI int ecore_list_init(Ecore_List *list);
151 170
152 /* Adding items to the list */ 171 /* Adding items to the list */
153 inline int ecore_list_append(Ecore_List * list, void *_data); 172 EAPI int ecore_list_append(Ecore_List * list, void *_data);
154 inline int ecore_list_prepend(Ecore_List * list, void *_data); 173 EAPI int ecore_list_prepend(Ecore_List * list, void *_data);
155 inline int ecore_list_insert(Ecore_List * list, void *_data); 174 EAPI int ecore_list_insert(Ecore_List * list, void *_data);
156 175
157 /* Removing items from the list */ 176 /* Removing items from the list */
158 inline int ecore_list_remove_destroy(Ecore_List *list); 177 EAPI int ecore_list_remove_destroy(Ecore_List *list);
159 inline void *ecore_list_remove(Ecore_List * list); 178 EAPI void *ecore_list_remove(Ecore_List * list);
160 inline void *ecore_list_remove_first(Ecore_List * list); 179 EAPI void *ecore_list_remove_first(Ecore_List * list);
161 inline void *ecore_list_remove_last(Ecore_List * list); 180 EAPI void *ecore_list_remove_last(Ecore_List * list);
162 181
163 /* Retrieve the current position in the list */ 182 /* Retrieve the current position in the list */
164 inline void *ecore_list_current(Ecore_List * list); 183 EAPI void *ecore_list_current(Ecore_List * list);
165 int ecore_list_index(Ecore_List * list); 184 EAPI int ecore_list_index(Ecore_List * list);
166 int ecore_list_nodes(Ecore_List * list); 185 EAPI int ecore_list_nodes(Ecore_List * list);
167 186
168 /* Traversing the list */ 187 /* Traversing the list */
169 int ecore_list_for_each(Ecore_List *list, Ecore_For_Each function, 188 EAPI int ecore_list_for_each(Ecore_List *list, Ecore_For_Each function,
170 void *user_data); 189 void *user_data);
171 inline void *ecore_list_goto_first(Ecore_List * list); 190 EAPI void *ecore_list_goto_first(Ecore_List * list);
172 inline void *ecore_list_goto_last(Ecore_List * list); 191 EAPI void *ecore_list_goto_last(Ecore_List * list);
173 inline void *ecore_list_goto_index(Ecore_List * list, int index); 192 EAPI void *ecore_list_goto_index(Ecore_List * list, int index);
174 inline void *ecore_list_goto(Ecore_List * list, void *_data); 193 EAPI void *ecore_list_goto(Ecore_List * list, void *_data);
175 194
176 /* Traversing the list and returning data */ 195 /* Traversing the list and returning data */
177 inline void *ecore_list_next(Ecore_List * list); 196 EAPI void *ecore_list_next(Ecore_List * list);
178 197
179 /* Check to see if there is any data in the list */ 198 /* Check to see if there is any data in the list */
180 int ecore_list_is_empty(Ecore_List * list); 199 EAPI int ecore_list_is_empty(Ecore_List * list);
181 200
182 /* Remove every node in the list without freeing the list itself */ 201 /* Remove every node in the list without freeing the list itself */
183 int ecore_list_clear(Ecore_List * list); 202 EAPI int ecore_list_clear(Ecore_List * list);
184 /* Free the list and it's contents */ 203 /* Free the list and it's contents */
185 void ecore_list_destroy(Ecore_List *list); 204 EAPI void ecore_list_destroy(Ecore_List *list);
186 205
187 /* Creating and initializing list nodes */ 206 /* Creating and initializing list nodes */
188 Ecore_List_Node *ecore_list_node_new(void); 207 EAPI Ecore_List_Node *ecore_list_node_new(void);
189 int ecore_list_node_init(Ecore_List_Node *newNode); 208 EAPI int ecore_list_node_init(Ecore_List_Node *newNode);
190 209
191 /* Destroying nodes */ 210 /* Destroying nodes */
192 int ecore_list_node_destroy(Ecore_List_Node * _e_node, Ecore_Free_Cb free_func); 211 EAPI int ecore_list_node_destroy(Ecore_List_Node * _e_node, Ecore_Free_Cb free_func);
193 212
194 int ecore_list_set_free_cb(Ecore_List * list, Ecore_Free_Cb free_func); 213 EAPI int ecore_list_set_free_cb(Ecore_List * list, Ecore_Free_Cb free_func);
195 214
196 typedef Ecore_List Ecore_DList; 215 typedef Ecore_List Ecore_DList;
197# define ECORE_DLIST(dlist) ((Ecore_DList *)dlist) 216# define ECORE_DLIST(dlist) ((Ecore_DList *)dlist)
@@ -205,52 +224,52 @@ extern "C" {
205 }; 224 };
206 225
207 /* Creating and initializing new list structures */ 226 /* Creating and initializing new list structures */
208 Ecore_DList *ecore_dlist_new(void); 227 EAPI Ecore_DList *ecore_dlist_new(void);
209 int ecore_dlist_init(Ecore_DList *list); 228 EAPI int ecore_dlist_init(Ecore_DList *list);
210 void ecore_dlist_destroy(Ecore_DList *list); 229 EAPI void ecore_dlist_destroy(Ecore_DList *list);
211 230
212 /* Adding items to the list */ 231 /* Adding items to the list */
213 int ecore_dlist_append(Ecore_DList * _e_dlist, void *_data); 232 EAPI int ecore_dlist_append(Ecore_DList * _e_dlist, void *_data);
214 int ecore_dlist_prepend(Ecore_DList * _e_dlist, void *_data); 233 EAPI int ecore_dlist_prepend(Ecore_DList * _e_dlist, void *_data);
215 int ecore_dlist_insert(Ecore_DList * _e_dlist, void *_data); 234 EAPI int ecore_dlist_insert(Ecore_DList * _e_dlist, void *_data);
216 235
217 /* Info about list's state */ 236 /* Info about list's state */
218 void *ecore_dlist_current(Ecore_DList *list); 237 EAPI void *ecore_dlist_current(Ecore_DList *list);
219 int ecore_dlist_index(Ecore_DList *list); 238 EAPI int ecore_dlist_index(Ecore_DList *list);
220# define ecore_dlist_nodes(list) ecore_list_nodes(ECORE_LIST(list)) 239# define ecore_dlist_nodes(list) ecore_list_nodes(ECORE_LIST(list))
221 240
222 /* Removing items from the list */ 241 /* Removing items from the list */
223 void *ecore_dlist_remove(Ecore_DList * _e_dlist); 242 EAPI void *ecore_dlist_remove(Ecore_DList * _e_dlist);
224 void *ecore_dlist_remove_first(Ecore_DList * _e_dlist); 243 EAPI void *ecore_dlist_remove_first(Ecore_DList * _e_dlist);
225 int ecore_dlist_remove_destroy(Ecore_DList *list); 244 EAPI int ecore_dlist_remove_destroy(Ecore_DList *list);
226 void *ecore_dlist_remove_last(Ecore_DList * _e_dlist); 245 EAPI void *ecore_dlist_remove_last(Ecore_DList * _e_dlist);
227 246
228 /* Traversing the list */ 247 /* Traversing the list */
229# define ecore_dlist_for_each(list, function, user_data) \ 248# define ecore_dlist_for_each(list, function, user_data) \
230 ecore_list_for_each(ECORE_LIST(list), function, user_data) 249 ecore_list_for_each(ECORE_LIST(list), function, user_data)
231 inline void *ecore_dlist_goto_first(Ecore_DList * _e_dlist); 250 EAPI void *ecore_dlist_goto_first(Ecore_DList * _e_dlist);
232 inline void *ecore_dlist_goto_last(Ecore_DList * _e_dlist); 251 EAPI void *ecore_dlist_goto_last(Ecore_DList * _e_dlist);
233 inline void *ecore_dlist_goto_index(Ecore_DList * _e_dlist, int index); 252 EAPI void *ecore_dlist_goto_index(Ecore_DList * _e_dlist, int index);
234 inline void *ecore_dlist_goto(Ecore_DList * _e_dlist, void *_data); 253 EAPI void *ecore_dlist_goto(Ecore_DList * _e_dlist, void *_data);
235 254
236 /* Traversing the list and returning data */ 255 /* Traversing the list and returning data */
237 inline void *ecore_dlist_next(Ecore_DList * list); 256 EAPI void *ecore_dlist_next(Ecore_DList * list);
238 inline void *ecore_dlist_previous(Ecore_DList * list); 257 EAPI void *ecore_dlist_previous(Ecore_DList * list);
239 258
240 /* Check to see if there is any data in the list */ 259 /* Check to see if there is any data in the list */
241 int ecore_dlist_is_empty(Ecore_DList * _e_dlist); 260 EAPI int ecore_dlist_is_empty(Ecore_DList * _e_dlist);
242 261
243 /* Remove every node in the list without free'ing it */ 262 /* Remove every node in the list without free'ing it */
244 int ecore_dlist_clear(Ecore_DList * _e_dlist); 263 EAPI int ecore_dlist_clear(Ecore_DList * _e_dlist);
245 264
246 /* Creating and initializing list nodes */ 265 /* Creating and initializing list nodes */
247 int ecore_dlist_node_init(Ecore_DList_Node * node); 266 EAPI int ecore_dlist_node_init(Ecore_DList_Node * node);
248 Ecore_DList_Node *ecore_dlist_node_new(void); 267 EAPI Ecore_DList_Node *ecore_dlist_node_new(void);
249 268
250 /* Destroying nodes */ 269 /* Destroying nodes */
251 int ecore_dlist_node_destroy(Ecore_DList_Node * node, Ecore_Free_Cb free_func); 270 EAPI int ecore_dlist_node_destroy(Ecore_DList_Node * node, Ecore_Free_Cb free_func);
252 271
253 int ecore_dlist_set_free_cb(Ecore_DList * dlist, Ecore_Free_Cb free_func); 272 EAPI int ecore_dlist_set_free_cb(Ecore_DList * dlist, Ecore_Free_Cb free_func);
254 273
255 274
256 275
@@ -294,23 +313,23 @@ extern "C" {
294 }; 313 };
295 314
296 /* Create and initialize a hash */ 315 /* Create and initialize a hash */
297 Ecore_Hash *ecore_hash_new(Ecore_Hash_Cb hash_func, Ecore_Compare_Cb compare); 316 EAPI Ecore_Hash *ecore_hash_new(Ecore_Hash_Cb hash_func, Ecore_Compare_Cb compare);
298 int ecore_hash_init(Ecore_Hash *hash, Ecore_Hash_Cb hash_func, Ecore_Compare_Cb compare); 317 EAPI int ecore_hash_init(Ecore_Hash *hash, Ecore_Hash_Cb hash_func, Ecore_Compare_Cb compare);
299 318
300 /* Functions related to freeing the data in the hash table */ 319 /* Functions related to freeing the data in the hash table */
301 int ecore_hash_set_free_key(Ecore_Hash *hash, Ecore_Free_Cb function); 320 EAPI int ecore_hash_set_free_key(Ecore_Hash *hash, Ecore_Free_Cb function);
302 int ecore_hash_set_free_value(Ecore_Hash *hash, Ecore_Free_Cb function); 321 EAPI int ecore_hash_set_free_value(Ecore_Hash *hash, Ecore_Free_Cb function);
303 void ecore_hash_destroy(Ecore_Hash *hash); 322 EAPI void ecore_hash_destroy(Ecore_Hash *hash);
304 323
305 int ecore_hash_for_each_node(Ecore_Hash *hash, Ecore_For_Each for_each_func, 324 EAPI int ecore_hash_for_each_node(Ecore_Hash *hash, Ecore_For_Each for_each_func,
306 void *user_data); 325 void *user_data);
307 Ecore_List *ecore_hash_keys(Ecore_Hash *hash); 326 EAPI Ecore_List *ecore_hash_keys(Ecore_Hash *hash);
308 327
309 /* Retrieve and store data into the hash */ 328 /* Retrieve and store data into the hash */
310 void *ecore_hash_get(Ecore_Hash *hash, void *key); 329 EAPI void *ecore_hash_get(Ecore_Hash *hash, void *key);
311 int ecore_hash_set(Ecore_Hash *hash, void *key, void *value); 330 EAPI int ecore_hash_set(Ecore_Hash *hash, void *key, void *value);
312 void *ecore_hash_remove(Ecore_Hash *hash, void *key); 331 EAPI void *ecore_hash_remove(Ecore_Hash *hash, void *key);
313 void ecore_hash_dump_graph(Ecore_Hash *hash); 332 EAPI void ecore_hash_dump_graph(Ecore_Hash *hash);
314 333
315 334
316 typedef struct _ecore_path_group Ecore_Path_Group; 335 typedef struct _ecore_path_group Ecore_Path_Group;
@@ -324,32 +343,32 @@ extern "C" {
324 /* 343 /*
325 * Create a new path group 344 * Create a new path group
326 */ 345 */
327 int ecore_path_group_new(char *group_name); 346 EAPI int ecore_path_group_new(char *group_name);
328 347
329 /* 348 /*
330 * Destroy a previous path group 349 * Destroy a previous path group
331 */ 350 */
332 void ecore_path_group_del(int group_id); 351 EAPI void ecore_path_group_del(int group_id);
333 352
334 /* 353 /*
335 * Add a directory to be searched for files 354 * Add a directory to be searched for files
336 */ 355 */
337 void ecore_path_group_add(int group_id, char *path); 356 EAPI void ecore_path_group_add(int group_id, char *path);
338 357
339 /* 358 /*
340 * Remove a directory to be searched for files 359 * Remove a directory to be searched for files
341 */ 360 */
342 void ecore_path_group_remove(int group_id, char *path); 361 EAPI void ecore_path_group_remove(int group_id, char *path);
343 362
344 /* 363 /*
345 * Find the absolute path if it exists in the group of paths 364 * Find the absolute path if it exists in the group of paths
346 */ 365 */
347 char * ecore_path_group_find(int group_id, char *name); 366 EAPI char * ecore_path_group_find(int group_id, char *name);
348 367
349 /* 368 /*
350 * Get a list of all the available files in a path set 369 * Get a list of all the available files in a path set
351 */ 370 */
352 Ecore_List * ecore_path_group_available(int group_id); 371 EAPI Ecore_List * ecore_path_group_available(int group_id);
353 372
354 373
355 typedef struct _ecore_plugin Ecore_Plugin; 374 typedef struct _ecore_plugin Ecore_Plugin;
@@ -363,19 +382,19 @@ extern "C" {
363 /* 382 /*
364 * Load the specified plugin 383 * Load the specified plugin
365 */ 384 */
366 Ecore_Plugin *ecore_plugin_load(int group_id, char *plugin); 385 EAPI Ecore_Plugin *ecore_plugin_load(int group_id, char *plugin);
367 386
368 /* 387 /*
369 * Unload the specified plugin 388 * Unload the specified plugin
370 */ 389 */
371 void ecore_plugin_unload(Ecore_Plugin * plugin); 390 EAPI void ecore_plugin_unload(Ecore_Plugin * plugin);
372 391
373 /* 392 /*
374 * Lookup the specified symbol for the plugin 393 * Lookup the specified symbol for the plugin
375 */ 394 */
376 void *ecore_plugin_call(Ecore_Plugin * plugin, char *symbol_name); 395 EAPI void *ecore_plugin_call(Ecore_Plugin * plugin, char *symbol_name);
377 396
378 Ecore_List *ecore_plugin_get_available(int group_id); 397 EAPI Ecore_List *ecore_plugin_get_available(int group_id);
379 398
380 399
381# define ECORE_SHEAP_MIN 0 400# define ECORE_SHEAP_MIN 0
@@ -398,19 +417,19 @@ extern "C" {
398 Ecore_Free_Cb free_func; 417 Ecore_Free_Cb free_func;
399 }; 418 };
400 419
401 Ecore_Sheap *ecore_sheap_new(Ecore_Compare_Cb compare, int size); 420 EAPI Ecore_Sheap *ecore_sheap_new(Ecore_Compare_Cb compare, int size);
402 void ecore_sheap_destroy(Ecore_Sheap *heap); 421 EAPI void ecore_sheap_destroy(Ecore_Sheap *heap);
403 int ecore_sheap_init(Ecore_Sheap *heap, Ecore_Compare_Cb compare, int size); 422 EAPI int ecore_sheap_init(Ecore_Sheap *heap, Ecore_Compare_Cb compare, int size);
404 int ecore_sheap_set_free_cb(Ecore_Sheap *heap, Ecore_Free_Cb free_func); 423 EAPI int ecore_sheap_set_free_cb(Ecore_Sheap *heap, Ecore_Free_Cb free_func);
405 int ecore_sheap_insert(Ecore_Sheap *heap, void *data); 424 EAPI int ecore_sheap_insert(Ecore_Sheap *heap, void *data);
406 void *ecore_sheap_extract(Ecore_Sheap *heap); 425 EAPI void *ecore_sheap_extract(Ecore_Sheap *heap);
407 void *ecore_sheap_extreme(Ecore_Sheap *heap); 426 EAPI void *ecore_sheap_extreme(Ecore_Sheap *heap);
408 int ecore_sheap_change(Ecore_Sheap *heap, void *item, void *newval); 427 EAPI int ecore_sheap_change(Ecore_Sheap *heap, void *item, void *newval);
409 int ecore_sheap_set_compare(Ecore_Sheap *heap, Ecore_Compare_Cb compare); 428 EAPI int ecore_sheap_set_compare(Ecore_Sheap *heap, Ecore_Compare_Cb compare);
410 void ecore_sheap_set_order(Ecore_Sheap *heap, char order); 429 EAPI void ecore_sheap_set_order(Ecore_Sheap *heap, char order);
411 void ecore_sheap_sort(Ecore_Sheap *heap); 430 EAPI void ecore_sheap_sort(Ecore_Sheap *heap);
412 431
413 inline void *ecore_sheap_item(Ecore_Sheap *heap, int i); 432 EAPI void *ecore_sheap_item(Ecore_Sheap *heap, int i);
414 433
415 434
416 typedef struct _ecore_string Ecore_String; 435 typedef struct _ecore_string Ecore_String;
@@ -419,10 +438,10 @@ extern "C" {
419 int references; 438 int references;
420 }; 439 };
421 440
422 int ecore_string_init(void); 441 EAPI int ecore_string_init(void);
423 void ecore_string_shutdown(void); 442 EAPI void ecore_string_shutdown(void);
424 const char *ecore_string_instance(char *string); 443 EAPI const char *ecore_string_instance(char *string);
425 void ecore_string_release(const char *string); 444 EAPI void ecore_string_release(const char *string);
426 445
427 446
428 typedef struct _Ecore_Tree_Node Ecore_Tree_Node; 447 typedef struct _Ecore_Tree_Node Ecore_Tree_Node;
@@ -462,62 +481,62 @@ extern "C" {
462 481
463 /* Some basic tree functions */ 482 /* Some basic tree functions */
464 /* Allocate and initialize a new tree */ 483 /* Allocate and initialize a new tree */
465 Ecore_Tree *ecore_tree_new(Ecore_Compare_Cb compare_func); 484 EAPI Ecore_Tree *ecore_tree_new(Ecore_Compare_Cb compare_func);
466 /* Initialize a new tree */ 485 /* Initialize a new tree */
467 int ecore_tree_init(Ecore_Tree * tree, Ecore_Compare_Cb compare_func); 486 EAPI int ecore_tree_init(Ecore_Tree * tree, Ecore_Compare_Cb compare_func);
468 487
469 /* Free the tree */ 488 /* Free the tree */
470 int ecore_tree_destroy(Ecore_Tree * tree); 489 EAPI int ecore_tree_destroy(Ecore_Tree * tree);
471 /* Check to see if the tree has any nodes in it */ 490 /* Check to see if the tree has any nodes in it */
472 int ecore_tree_is_empty(Ecore_Tree * tree); 491 EAPI int ecore_tree_is_empty(Ecore_Tree * tree);
473 492
474 /* Retrieve the value associated with key */ 493 /* Retrieve the value associated with key */
475 void *ecore_tree_get(Ecore_Tree * tree, void *key); 494 EAPI void *ecore_tree_get(Ecore_Tree * tree, void *key);
476 Ecore_Tree_Node *ecore_tree_get_node(Ecore_Tree * tree, void *key); 495 EAPI Ecore_Tree_Node *ecore_tree_get_node(Ecore_Tree * tree, void *key);
477 /* Retrieve the value of node with key greater than or equal to key */ 496 /* Retrieve the value of node with key greater than or equal to key */
478 void *ecore_tree_get_closest_larger(Ecore_Tree * tree, void *key); 497 EAPI void *ecore_tree_get_closest_larger(Ecore_Tree * tree, void *key);
479 /* Retrieve the value of node with key less than or equal to key */ 498 /* Retrieve the value of node with key less than or equal to key */
480 void *ecore_tree_get_closest_smaller(Ecore_Tree * tree, void *key); 499 EAPI void *ecore_tree_get_closest_smaller(Ecore_Tree * tree, void *key);
481 500
482 /* Set the value associated with key to value */ 501 /* Set the value associated with key to value */
483 int ecore_tree_set(Ecore_Tree * tree, void *key, void *value); 502 EAPI int ecore_tree_set(Ecore_Tree * tree, void *key, void *value);
484 /* Remove the key from the tree */ 503 /* Remove the key from the tree */
485 int ecore_tree_remove(Ecore_Tree * tree, void *key); 504 EAPI int ecore_tree_remove(Ecore_Tree * tree, void *key);
486 505
487 /* Add a node to the tree */ 506 /* Add a node to the tree */
488 int ecore_tree_add_node(Ecore_Tree * tree, Ecore_Tree_Node * node); 507 EAPI int ecore_tree_add_node(Ecore_Tree * tree, Ecore_Tree_Node * node);
489 /* Remove a node from the tree */ 508 /* Remove a node from the tree */
490 int ecore_tree_remove_node(Ecore_Tree * tree, Ecore_Tree_Node * node); 509 EAPI int ecore_tree_remove_node(Ecore_Tree * tree, Ecore_Tree_Node * node);
491 510
492 /* For each node in the tree perform the for_each_func function */ 511 /* For each node in the tree perform the for_each_func function */
493 /* For this one pass in the node */ 512 /* For this one pass in the node */
494 int ecore_tree_for_each_node(Ecore_Tree * tree, Ecore_For_Each for_each_func, 513 EAPI int ecore_tree_for_each_node(Ecore_Tree * tree, Ecore_For_Each for_each_func,
495 void *user_data); 514 void *user_data);
496 /* And here pass in the node's value */ 515 /* And here pass in the node's value */
497 int ecore_tree_for_each_node_value(Ecore_Tree * tree, 516 EAPI int ecore_tree_for_each_node_value(Ecore_Tree * tree,
498 Ecore_For_Each for_each_func, 517 Ecore_For_Each for_each_func,
499 void *user_data); 518 void *user_data);
500 519
501 /* Some basic node functions */ 520 /* Some basic node functions */
502 /* Initialize a node */ 521 /* Initialize a node */
503 int ecore_tree_node_init(Ecore_Tree_Node * new_node); 522 EAPI int ecore_tree_node_init(Ecore_Tree_Node * new_node);
504 /* Allocate and initialize a new node */ 523 /* Allocate and initialize a new node */
505 Ecore_Tree_Node *ecore_tree_node_new(void); 524 EAPI Ecore_Tree_Node *ecore_tree_node_new(void);
506 /* Free the desired node */ 525 /* Free the desired node */
507 int ecore_tree_node_destroy(Ecore_Tree_Node * node, Ecore_Free_Cb free_data); 526 EAPI int ecore_tree_node_destroy(Ecore_Tree_Node * node, Ecore_Free_Cb free_data);
508 527
509 /* Set the node's key to key */ 528 /* Set the node's key to key */
510 int ecore_tree_node_key_set(Ecore_Tree_Node * node, void *key); 529 EAPI int ecore_tree_node_key_set(Ecore_Tree_Node * node, void *key);
511 /* Retrieve the key in node */ 530 /* Retrieve the key in node */
512 void *ecore_tree_node_key_get(Ecore_Tree_Node * node); 531 EAPI void *ecore_tree_node_key_get(Ecore_Tree_Node * node);
513 532
514 /* Set the node's value to value */ 533 /* Set the node's value to value */
515 int ecore_tree_node_value_set(Ecore_Tree_Node * node, void *value); 534 EAPI int ecore_tree_node_value_set(Ecore_Tree_Node * node, void *value);
516 /* Retrieve the value in node */ 535 /* Retrieve the value in node */
517 void *ecore_tree_node_value_get(Ecore_Tree_Node * node); 536 EAPI void *ecore_tree_node_value_get(Ecore_Tree_Node * node);
518 537
519 /* Add a function to free the data stored in nodes */ 538 /* Add a function to free the data stored in nodes */
520 int ecore_tree_set_free_cb(Ecore_Tree * tree, Ecore_Free_Cb free_func); 539 EAPI int ecore_tree_set_free_cb(Ecore_Tree * tree, Ecore_Free_Cb free_func);
521 540
522#ifdef __cplusplus 541#ifdef __cplusplus
523} 542}
diff --git a/legacy/ecore/src/lib/ecore/ecore_private.h b/legacy/ecore/src/lib/ecore/ecore_private.h
index 1df9dd181b..b41421123e 100644
--- a/legacy/ecore/src/lib/ecore/ecore_private.h
+++ b/legacy/ecore/src/lib/ecore/ecore_private.h
@@ -21,6 +21,33 @@
21#include <config.h> 21#include <config.h>
22#endif 22#endif
23 23
24#ifdef EAPI
25#undef EAPI
26#endif
27#ifdef WIN32
28# ifdef BUILDING_DLL
29# define EAPI __declspec(dllexport)
30# else
31# define EAPI __declspec(dllimport)
32# endif
33#else
34# ifdef __GNUC__
35# if __GNUC__ >= 4
36# define EAPI __attribute__ ((visibility("default")))
37# else
38# define EAPI
39# endif
40# else
41# define EAPI
42# endif
43#endif
44
45#ifdef __GNUC__
46# if __GNUC__ >= 4
47# pragma GCC visibility push(hidden)
48# endif
49#endif
50
24#if HAVE___ATTRIBUTE__ 51#if HAVE___ATTRIBUTE__
25#define __UNUSED__ __attribute__((unused)) 52#define __UNUSED__ __attribute__((unused))
26#else 53#else
@@ -273,7 +300,7 @@ struct _Ecore_Animator
273 300
274#endif 301#endif
275 302
276void _ecore_magic_fail(void *d, Ecore_Magic m, Ecore_Magic req_m, const char *fname); 303EAPI void _ecore_magic_fail(void *d, Ecore_Magic m, Ecore_Magic req_m, const char *fname);
277 304
278void _ecore_timer_shutdown(void); 305void _ecore_timer_shutdown(void);
279void _ecore_timer_cleanup(void); 306void _ecore_timer_cleanup(void);
@@ -303,7 +330,7 @@ void _ecore_event_call(void);
303void *_ecore_event_exe_exit_new(void); 330void *_ecore_event_exe_exit_new(void);
304void _ecore_event_exe_exit_free(void *data, void *ev); 331void _ecore_event_exe_exit_free(void *data, void *ev);
305#endif 332#endif
306void *_ecore_event_signal_user_new(void); 333EAPI void *_ecore_event_signal_user_new(void);
307void *_ecore_event_signal_hup_new(void); 334void *_ecore_event_signal_hup_new(void);
308void *_ecore_event_signal_exit_new(void); 335void *_ecore_event_signal_exit_new(void);
309void *_ecore_event_signal_power_new(void); 336void *_ecore_event_signal_power_new(void);
@@ -325,12 +352,12 @@ void *_ecore_exe_free(Ecore_Exe *exe);
325void _ecore_animator_shutdown(void); 352void _ecore_animator_shutdown(void);
326 353
327 354
328void *_ecore_list2_append (void *in_list, void *in_item); 355EAPI void *_ecore_list2_append (void *in_list, void *in_item);
329void *_ecore_list2_prepend (void *in_list, void *in_item); 356EAPI void *_ecore_list2_prepend (void *in_list, void *in_item);
330void *_ecore_list2_append_relative (void *in_list, void *in_item, void *in_relative); 357EAPI void *_ecore_list2_append_relative (void *in_list, void *in_item, void *in_relative);
331void *_ecore_list2_prepend_relative (void *in_list, void *in_item, void *in_relative); 358EAPI void *_ecore_list2_prepend_relative (void *in_list, void *in_item, void *in_relative);
332void *_ecore_list2_remove (void *in_list, void *in_item); 359EAPI void *_ecore_list2_remove (void *in_list, void *in_item);
333void *_ecore_list2_find (void *in_list, void *in_item); 360EAPI void *_ecore_list2_find (void *in_list, void *in_item);
334 361
335void _ecore_fps_debug_init(void); 362void _ecore_fps_debug_init(void);
336void _ecore_fps_debug_shutdown(void); 363void _ecore_fps_debug_shutdown(void);
diff --git a/legacy/ecore/src/lib/ecore/ecore_value.c b/legacy/ecore/src/lib/ecore/ecore_value.c
index 34a6d37912..93a58d6dd7 100644
--- a/legacy/ecore/src/lib/ecore/ecore_value.c
+++ b/legacy/ecore/src/lib/ecore/ecore_value.c
@@ -24,6 +24,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 24
25*/ 25*/
26 26
27#include "Ecore.h"
28#include "Ecore_Data.h"
27#include "ecore_private.h" 29#include "ecore_private.h"
28 30
29const unsigned int ecore_prime_table[] = { 17, 31, 61, 127, 257, 509, 1021, 31const unsigned int ecore_prime_table[] = { 17, 31, 61, 127, 257, 509, 1021,
diff --git a/legacy/ecore/src/lib/ecore_con/Ecore_Con.h b/legacy/ecore/src/lib/ecore_con/Ecore_Con.h
index 485bd7c9f9..de02560554 100644
--- a/legacy/ecore/src/lib/ecore_con/Ecore_Con.h
+++ b/legacy/ecore/src/lib/ecore_con/Ecore_Con.h
@@ -11,8 +11,12 @@
11# define EAPI __declspec(dllimport) 11# define EAPI __declspec(dllimport)
12# endif 12# endif
13#else 13#else
14# ifdef GCC_HASCLASSVISIBILITY 14# ifdef __GNUC__
15# define EAPI __attribute__ ((visibility("default"))) 15# if __GNUC__ >= 4
16# define EAPI __attribute__ ((visibility("default")))
17# else
18# define EAPI
19# endif
16# else 20# else
17# define EAPI 21# define EAPI
18# endif 22# endif
@@ -127,14 +131,14 @@ extern "C" {
127 int status; 131 int status;
128 }; 132 };
129 133
130 extern int ECORE_CON_EVENT_CLIENT_ADD; 134 EAPI extern int ECORE_CON_EVENT_CLIENT_ADD;
131 extern int ECORE_CON_EVENT_CLIENT_DEL; 135 EAPI extern int ECORE_CON_EVENT_CLIENT_DEL;
132 extern int ECORE_CON_EVENT_SERVER_ADD; 136 EAPI extern int ECORE_CON_EVENT_SERVER_ADD;
133 extern int ECORE_CON_EVENT_SERVER_DEL; 137 EAPI extern int ECORE_CON_EVENT_SERVER_DEL;
134 extern int ECORE_CON_EVENT_CLIENT_DATA; 138 EAPI extern int ECORE_CON_EVENT_CLIENT_DATA;
135 extern int ECORE_CON_EVENT_SERVER_DATA; 139 EAPI extern int ECORE_CON_EVENT_SERVER_DATA;
136 extern int ECORE_CON_EVENT_URL_DATA; 140 EAPI extern int ECORE_CON_EVENT_URL_DATA;
137 extern int ECORE_CON_EVENT_URL_COMPLETE; 141 EAPI extern int ECORE_CON_EVENT_URL_COMPLETE;
138 142
139 EAPI int ecore_con_init(void); 143 EAPI int ecore_con_init(void);
140 EAPI int ecore_con_shutdown(void); 144 EAPI int ecore_con_shutdown(void);
diff --git a/legacy/ecore/src/lib/ecore_config/Ecore_Config.h b/legacy/ecore/src/lib/ecore_config/Ecore_Config.h
index 3e4811c62c..76e290273c 100644
--- a/legacy/ecore/src/lib/ecore_config/Ecore_Config.h
+++ b/legacy/ecore/src/lib/ecore_config/Ecore_Config.h
@@ -11,8 +11,12 @@
11# define EAPI __declspec(dllimport) 11# define EAPI __declspec(dllimport)
12# endif 12# endif
13#else 13#else
14# ifdef GCC_HASCLASSVISIBILITY 14# ifdef __GNUC__
15# define EAPI __attribute__ ((visibility("default"))) 15# if __GNUC__ >= 4
16# define EAPI __attribute__ ((visibility("default")))
17# else
18# define EAPI
19# endif
16# else 20# else
17# define EAPI 21# define EAPI
18# endif 22# endif
@@ -125,10 +129,10 @@ extern "C"
125# endif 129# endif
126 130
127/* global ptrs to save passing them through the API */ 131/* global ptrs to save passing them through the API */
128 extern EAPI Ecore_Config_Server *__ecore_config_server_global; 132 EAPI extern Ecore_Config_Server *__ecore_config_server_global;
129 extern EAPI Ecore_Config_Server *__ecore_config_server_local; 133 EAPI extern Ecore_Config_Server *__ecore_config_server_local;
130 extern EAPI Ecore_Config_Bundle *__ecore_config_bundle_local; 134 EAPI extern Ecore_Config_Bundle *__ecore_config_bundle_local;
131 extern EAPI char *__ecore_config_app_name; 135 EAPI extern char *__ecore_config_app_name;
132 136
133 EAPI Ecore_Config_Prop *ecore_config_get(const char *key); 137 EAPI Ecore_Config_Prop *ecore_config_get(const char *key);
134 EAPI const char *ecore_config_type_get(const Ecore_Config_Prop *e); 138 EAPI const char *ecore_config_type_get(const Ecore_Config_Prop *e);
diff --git a/legacy/ecore/src/lib/ecore_dbus/Ecore_DBus.h b/legacy/ecore/src/lib/ecore_dbus/Ecore_DBus.h
index d77291f360..e28efa6155 100644
--- a/legacy/ecore/src/lib/ecore_dbus/Ecore_DBus.h
+++ b/legacy/ecore/src/lib/ecore_dbus/Ecore_DBus.h
@@ -15,8 +15,12 @@
15# define EAPI __declspec(dllimport) 15# define EAPI __declspec(dllimport)
16# endif 16# endif
17#else 17#else
18# ifdef GCC_HASCLASSVISIBILITY 18# ifdef __GNUC__
19# define EAPI __attribute__ ((visibility("default"))) 19# if __GNUC__ >= 4
20# define EAPI __attribute__ ((visibility("default")))
21# else
22# define EAPI
23# endif
20# else 24# else
21# define EAPI 25# define EAPI
22# endif 26# endif
@@ -86,9 +90,9 @@ extern "C" {
86 ECORE_DBUS_HEADER_FIELD_SIGNATURE 90 ECORE_DBUS_HEADER_FIELD_SIGNATURE
87 } Ecore_DBus_Message_Header_Field; 91 } Ecore_DBus_Message_Header_Field;
88 92
89 extern int ECORE_DBUS_EVENT_SERVER_ADD; 93 EAPI extern int ECORE_DBUS_EVENT_SERVER_ADD;
90 extern int ECORE_DBUS_EVENT_SERVER_DATA; 94 EAPI extern int ECORE_DBUS_EVENT_SERVER_DATA;
91 extern int ECORE_DBUS_EVENT_SERVER_DEL; 95 EAPI extern int ECORE_DBUS_EVENT_SERVER_DEL;
92 96
93 /* init */ 97 /* init */
94 EAPI int ecore_dbus_init(void); 98 EAPI int ecore_dbus_init(void);
diff --git a/legacy/ecore/src/lib/ecore_directfb/Ecore_DirectFB.h b/legacy/ecore/src/lib/ecore_directfb/Ecore_DirectFB.h
index a7b246f459..eace6595a1 100644
--- a/legacy/ecore/src/lib/ecore_directfb/Ecore_DirectFB.h
+++ b/legacy/ecore/src/lib/ecore_directfb/Ecore_DirectFB.h
@@ -11,8 +11,12 @@
11# define EAPI __declspec(dllimport) 11# define EAPI __declspec(dllimport)
12# endif 12# endif
13#else 13#else
14# ifdef GCC_HASCLASSVISIBILITY 14# ifdef __GNUC__
15# define EAPI __attribute__ ((visibility("default"))) 15# if __GNUC__ >= 4
16# define EAPI __attribute__ ((visibility("default")))
17# else
18# define EAPI
19# endif
16# else 20# else
17# define EAPI 21# define EAPI
18# endif 22# endif
@@ -26,20 +30,20 @@
26extern "C" { 30extern "C" {
27#endif 31#endif
28 32
29extern int ECORE_DIRECTFB_EVENT_POSITION; 33EAPI extern int ECORE_DIRECTFB_EVENT_POSITION;
30extern int ECORE_DIRECTFB_EVENT_SIZE; 34EAPI extern int ECORE_DIRECTFB_EVENT_SIZE;
31extern int ECORE_DIRECTFB_EVENT_CLOSE; 35EAPI extern int ECORE_DIRECTFB_EVENT_CLOSE;
32extern int ECORE_DIRECTFB_EVENT_DESTROYED; 36EAPI extern int ECORE_DIRECTFB_EVENT_DESTROYED;
33extern int ECORE_DIRECTFB_EVENT_GOT_FOCUS; 37EAPI extern int ECORE_DIRECTFB_EVENT_GOT_FOCUS;
34extern int ECORE_DIRECTFB_EVENT_LOST_FOCUS; 38EAPI extern int ECORE_DIRECTFB_EVENT_LOST_FOCUS;
35extern int ECORE_DIRECTFB_EVENT_KEY_DOWN; 39EAPI extern int ECORE_DIRECTFB_EVENT_KEY_DOWN;
36extern int ECORE_DIRECTFB_EVENT_KEY_UP; 40EAPI extern int ECORE_DIRECTFB_EVENT_KEY_UP;
37extern int ECORE_DIRECTFB_EVENT_BUTTON_DOWN; 41EAPI extern int ECORE_DIRECTFB_EVENT_BUTTON_DOWN;
38extern int ECORE_DIRECTFB_EVENT_BUTTON_UP; 42EAPI extern int ECORE_DIRECTFB_EVENT_BUTTON_UP;
39extern int ECORE_DIRECTFB_EVENT_MOTION; 43EAPI extern int ECORE_DIRECTFB_EVENT_MOTION;
40extern int ECORE_DIRECTFB_EVENT_ENTER; 44EAPI extern int ECORE_DIRECTFB_EVENT_ENTER;
41extern int ECORE_DIRECTFB_EVENT_LEAVE; 45EAPI extern int ECORE_DIRECTFB_EVENT_LEAVE;
42extern int ECORE_DIRECTFB_EVENT_WHEEL; 46EAPI extern int ECORE_DIRECTFB_EVENT_WHEEL;
43 47
44 48
45 49
diff --git a/legacy/ecore/src/lib/ecore_evas/Ecore_Evas.h b/legacy/ecore/src/lib/ecore_evas/Ecore_Evas.h
index 9719f1c1f9..3d8efc7ba8 100644
--- a/legacy/ecore/src/lib/ecore_evas/Ecore_Evas.h
+++ b/legacy/ecore/src/lib/ecore_evas/Ecore_Evas.h
@@ -11,8 +11,12 @@
11# define EAPI __declspec(dllimport) 11# define EAPI __declspec(dllimport)
12# endif 12# endif
13#else 13#else
14# ifdef GCC_HASCLASSVISIBILITY 14# ifdef __GNUC__
15# define EAPI __attribute__ ((visibility("default"))) 15# if __GNUC__ >= 4
16# define EAPI __attribute__ ((visibility("default")))
17# else
18# define EAPI
19# endif
16# else 20# else
17# define EAPI 21# define EAPI
18# endif 22# endif
diff --git a/legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h b/legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h
index 9ec1596bca..7627d82e81 100644
--- a/legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h
+++ b/legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h
@@ -11,8 +11,12 @@
11# define EAPI __declspec(dllimport) 11# define EAPI __declspec(dllimport)
12# endif 12# endif
13#else 13#else
14# ifdef GCC_HASCLASSVISIBILITY 14# ifdef __GNUC__
15# define EAPI __attribute__ ((visibility("default"))) 15# if __GNUC__ >= 4
16# define EAPI __attribute__ ((visibility("default")))
17# else
18# define EAPI
19# endif
16# else 20# else
17# define EAPI 21# define EAPI
18# endif 22# endif
@@ -33,11 +37,11 @@
33extern "C" { 37extern "C" {
34#endif 38#endif
35 39
36extern int ECORE_FB_EVENT_KEY_DOWN; /**< FB Key Down event */ 40EAPI extern int ECORE_FB_EVENT_KEY_DOWN; /**< FB Key Down event */
37extern int ECORE_FB_EVENT_KEY_UP; /**< FB Key Up event */ 41EAPI extern int ECORE_FB_EVENT_KEY_UP; /**< FB Key Up event */
38extern int ECORE_FB_EVENT_MOUSE_BUTTON_DOWN; /**< FB Mouse Down event */ 42EAPI extern int ECORE_FB_EVENT_MOUSE_BUTTON_DOWN; /**< FB Mouse Down event */
39extern int ECORE_FB_EVENT_MOUSE_BUTTON_UP; /**< FB Mouse Up event */ 43EAPI extern int ECORE_FB_EVENT_MOUSE_BUTTON_UP; /**< FB Mouse Up event */
40extern int ECORE_FB_EVENT_MOUSE_MOVE; /**< FB Mouse Move event */ 44EAPI extern int ECORE_FB_EVENT_MOUSE_MOVE; /**< FB Mouse Move event */
41 45
42typedef struct _Ecore_Fb_Event_Key_Down Ecore_Fb_Event_Key_Down; /**< FB Key Down event */ 46typedef struct _Ecore_Fb_Event_Key_Down Ecore_Fb_Event_Key_Down; /**< FB Key Down event */
43typedef struct _Ecore_Fb_Event_Key_Up Ecore_Fb_Event_Key_Up; /**< FB Key Up event */ 47typedef struct _Ecore_Fb_Event_Key_Up Ecore_Fb_Event_Key_Up; /**< FB Key Up event */
diff --git a/legacy/ecore/src/lib/ecore_file/Ecore_File.h b/legacy/ecore/src/lib/ecore_file/Ecore_File.h
index 4f38f843c2..80bfd152fe 100644
--- a/legacy/ecore/src/lib/ecore_file/Ecore_File.h
+++ b/legacy/ecore/src/lib/ecore_file/Ecore_File.h
@@ -19,8 +19,12 @@
19# define EAPI __declspec(dllimport) 19# define EAPI __declspec(dllimport)
20# endif 20# endif
21#else 21#else
22# ifdef GCC_HASCLASSVISIBILITY 22# ifdef __GNUC__
23# define EAPI __attribute__ ((visibility("default"))) 23# if __GNUC__ >= 4
24# define EAPI __attribute__ ((visibility("default")))
25# else
26# define EAPI
27# endif
24# else 28# else
25# define EAPI 29# define EAPI
26# endif 30# endif
diff --git a/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h b/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
index 36b7b70208..9071cacc2c 100644
--- a/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
+++ b/legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
@@ -11,8 +11,12 @@
11# define EAPI __declspec(dllimport) 11# define EAPI __declspec(dllimport)
12# endif 12# endif
13#else 13#else
14# ifdef GCC_HASCLASSVISIBILITY 14# ifdef __GNUC__
15# define EAPI __attribute__ ((visibility("default"))) 15# if __GNUC__ >= 4
16# define EAPI __attribute__ ((visibility("default")))
17# else
18# define EAPI
19# endif
16# else 20# else
17# define EAPI 21# define EAPI
18# endif 22# endif
@@ -272,12 +276,12 @@ EAPI unsigned long long _ecore_ipc_swap_64(unsigned long long v);
272 int size; 276 int size;
273 }; 277 };
274 278
275 extern int ECORE_IPC_EVENT_CLIENT_ADD; 279 EAPI extern int ECORE_IPC_EVENT_CLIENT_ADD;
276 extern int ECORE_IPC_EVENT_CLIENT_DEL; 280 EAPI extern int ECORE_IPC_EVENT_CLIENT_DEL;
277 extern int ECORE_IPC_EVENT_SERVER_ADD; 281 EAPI extern int ECORE_IPC_EVENT_SERVER_ADD;
278 extern int ECORE_IPC_EVENT_SERVER_DEL; 282 EAPI extern int ECORE_IPC_EVENT_SERVER_DEL;
279 extern int ECORE_IPC_EVENT_CLIENT_DATA; 283 EAPI extern int ECORE_IPC_EVENT_CLIENT_DATA;
280 extern int ECORE_IPC_EVENT_SERVER_DATA; 284 EAPI extern int ECORE_IPC_EVENT_SERVER_DATA;
281 285
282 EAPI int ecore_ipc_init(void); 286 EAPI int ecore_ipc_init(void);
283 EAPI int ecore_ipc_shutdown(void); 287 EAPI int ecore_ipc_shutdown(void);
diff --git a/legacy/ecore/src/lib/ecore_job/Ecore_Job.h b/legacy/ecore/src/lib/ecore_job/Ecore_Job.h
index e676ede988..e4a3eee76c 100644
--- a/legacy/ecore/src/lib/ecore_job/Ecore_Job.h
+++ b/legacy/ecore/src/lib/ecore_job/Ecore_Job.h
@@ -11,8 +11,12 @@
11# define EAPI __declspec(dllimport) 11# define EAPI __declspec(dllimport)
12# endif 12# endif
13#else 13#else
14# ifdef GCC_HASCLASSVISIBILITY 14# ifdef __GNUC__
15# define EAPI __attribute__ ((visibility("default"))) 15# if __GNUC__ >= 4
16# define EAPI __attribute__ ((visibility("default")))
17# else
18# define EAPI
19# endif
16# else 20# else
17# define EAPI 21# define EAPI
18# endif 22# endif
diff --git a/legacy/ecore/src/lib/ecore_txt/Ecore_Txt.h b/legacy/ecore/src/lib/ecore_txt/Ecore_Txt.h
index 60dc659a26..adfe0d17ed 100644
--- a/legacy/ecore/src/lib/ecore_txt/Ecore_Txt.h
+++ b/legacy/ecore/src/lib/ecore_txt/Ecore_Txt.h
@@ -11,8 +11,12 @@
11# define EAPI __declspec(dllimport) 11# define EAPI __declspec(dllimport)
12# endif 12# endif
13#else 13#else
14# ifdef GCC_HASCLASSVISIBILITY 14# ifdef __GNUC__
15# define EAPI __attribute__ ((visibility("default"))) 15# if __GNUC__ >= 4
16# define EAPI __attribute__ ((visibility("default")))
17# else
18# define EAPI
19# endif
16# else 20# else
17# define EAPI 21# define EAPI
18# endif 22# endif
diff --git a/legacy/ecore/src/lib/ecore_x/Ecore_X.h b/legacy/ecore/src/lib/ecore_x/Ecore_X.h
index cd6f0439f3..a1e6d96490 100644
--- a/legacy/ecore/src/lib/ecore_x/Ecore_X.h
+++ b/legacy/ecore/src/lib/ecore_x/Ecore_X.h
@@ -15,8 +15,12 @@
15# define EAPI __declspec(dllimport) 15# define EAPI __declspec(dllimport)
16# endif 16# endif
17#else 17#else
18# ifdef GCC_HASCLASSVISIBILITY 18# ifdef __GNUC__
19# define EAPI __attribute__ ((visibility("default"))) 19# if __GNUC__ >= 4
20# define EAPI __attribute__ ((visibility("default")))
21# else
22# define EAPI
23# endif
20# else 24# else
21# define EAPI 25# define EAPI
22# endif 26# endif
@@ -134,11 +138,11 @@ typedef enum _Ecore_X_Window_Stack_Mode {
134 138
135#define ECORE_X_DND_VERSION 5 139#define ECORE_X_DND_VERSION 5
136 140
137extern EAPI Ecore_X_Atom ECORE_X_DND_ACTION_COPY; 141EAPI extern Ecore_X_Atom ECORE_X_DND_ACTION_COPY;
138extern EAPI Ecore_X_Atom ECORE_X_DND_ACTION_MOVE; 142EAPI extern Ecore_X_Atom ECORE_X_DND_ACTION_MOVE;
139extern EAPI Ecore_X_Atom ECORE_X_DND_ACTION_LINK; 143EAPI extern Ecore_X_Atom ECORE_X_DND_ACTION_LINK;
140extern EAPI Ecore_X_Atom ECORE_X_DND_ACTION_ASK; 144EAPI extern Ecore_X_Atom ECORE_X_DND_ACTION_ASK;
141extern EAPI Ecore_X_Atom ECORE_X_DND_ACTION_PRIVATE; 145EAPI extern Ecore_X_Atom ECORE_X_DND_ACTION_PRIVATE;
142 146
143typedef enum _Ecore_X_Selection { 147typedef enum _Ecore_X_Selection {
144 ECORE_X_SELECTION_PRIMARY, 148 ECORE_X_SELECTION_PRIMARY,
@@ -761,80 +765,80 @@ struct _Ecore_X_Event_Desktop_Change
761 int source; 765 int source;
762}; 766};
763 767
764extern EAPI int ECORE_X_EVENT_KEY_DOWN; 768EAPI extern int ECORE_X_EVENT_KEY_DOWN;
765extern EAPI int ECORE_X_EVENT_KEY_UP; 769EAPI extern int ECORE_X_EVENT_KEY_UP;
766extern EAPI int ECORE_X_EVENT_MOUSE_BUTTON_DOWN; 770EAPI extern int ECORE_X_EVENT_MOUSE_BUTTON_DOWN;
767extern EAPI int ECORE_X_EVENT_MOUSE_BUTTON_UP; 771EAPI extern int ECORE_X_EVENT_MOUSE_BUTTON_UP;
768extern EAPI int ECORE_X_EVENT_MOUSE_MOVE; 772EAPI extern int ECORE_X_EVENT_MOUSE_MOVE;
769extern EAPI int ECORE_X_EVENT_MOUSE_IN; 773EAPI extern int ECORE_X_EVENT_MOUSE_IN;
770extern EAPI int ECORE_X_EVENT_MOUSE_OUT; 774EAPI extern int ECORE_X_EVENT_MOUSE_OUT;
771extern EAPI int ECORE_X_EVENT_MOUSE_WHEEL; 775EAPI extern int ECORE_X_EVENT_MOUSE_WHEEL;
772extern EAPI int ECORE_X_EVENT_WINDOW_FOCUS_IN; 776EAPI extern int ECORE_X_EVENT_WINDOW_FOCUS_IN;
773extern EAPI int ECORE_X_EVENT_WINDOW_FOCUS_OUT; 777EAPI extern int ECORE_X_EVENT_WINDOW_FOCUS_OUT;
774extern EAPI int ECORE_X_EVENT_WINDOW_KEYMAP; 778EAPI extern int ECORE_X_EVENT_WINDOW_KEYMAP;
775extern EAPI int ECORE_X_EVENT_WINDOW_DAMAGE; 779EAPI extern int ECORE_X_EVENT_WINDOW_DAMAGE;
776extern EAPI int ECORE_X_EVENT_WINDOW_VISIBILITY_CHANGE; 780EAPI extern int ECORE_X_EVENT_WINDOW_VISIBILITY_CHANGE;
777extern EAPI int ECORE_X_EVENT_WINDOW_CREATE; 781EAPI extern int ECORE_X_EVENT_WINDOW_CREATE;
778extern EAPI int ECORE_X_EVENT_WINDOW_DESTROY; 782EAPI extern int ECORE_X_EVENT_WINDOW_DESTROY;
779extern EAPI int ECORE_X_EVENT_WINDOW_HIDE; 783EAPI extern int ECORE_X_EVENT_WINDOW_HIDE;
780extern EAPI int ECORE_X_EVENT_WINDOW_SHOW; 784EAPI extern int ECORE_X_EVENT_WINDOW_SHOW;
781extern EAPI int ECORE_X_EVENT_WINDOW_SHOW_REQUEST; 785EAPI extern int ECORE_X_EVENT_WINDOW_SHOW_REQUEST;
782extern EAPI int ECORE_X_EVENT_WINDOW_REPARENT; 786EAPI extern int ECORE_X_EVENT_WINDOW_REPARENT;
783extern EAPI int ECORE_X_EVENT_WINDOW_CONFIGURE; 787EAPI extern int ECORE_X_EVENT_WINDOW_CONFIGURE;
784extern EAPI int ECORE_X_EVENT_WINDOW_CONFIGURE_REQUEST; 788EAPI extern int ECORE_X_EVENT_WINDOW_CONFIGURE_REQUEST;
785extern EAPI int ECORE_X_EVENT_WINDOW_GRAVITY; 789EAPI extern int ECORE_X_EVENT_WINDOW_GRAVITY;
786extern EAPI int ECORE_X_EVENT_WINDOW_RESIZE_REQUEST; 790EAPI extern int ECORE_X_EVENT_WINDOW_RESIZE_REQUEST;
787extern EAPI int ECORE_X_EVENT_WINDOW_STACK; 791EAPI extern int ECORE_X_EVENT_WINDOW_STACK;
788extern EAPI int ECORE_X_EVENT_WINDOW_STACK_REQUEST; 792EAPI extern int ECORE_X_EVENT_WINDOW_STACK_REQUEST;
789extern EAPI int ECORE_X_EVENT_WINDOW_PROPERTY; 793EAPI extern int ECORE_X_EVENT_WINDOW_PROPERTY;
790extern EAPI int ECORE_X_EVENT_WINDOW_COLORMAP; 794EAPI extern int ECORE_X_EVENT_WINDOW_COLORMAP;
791extern EAPI int ECORE_X_EVENT_WINDOW_MAPPING; 795EAPI extern int ECORE_X_EVENT_WINDOW_MAPPING;
792extern EAPI int ECORE_X_EVENT_SELECTION_CLEAR; 796EAPI extern int ECORE_X_EVENT_SELECTION_CLEAR;
793extern EAPI int ECORE_X_EVENT_SELECTION_REQUEST; 797EAPI extern int ECORE_X_EVENT_SELECTION_REQUEST;
794extern EAPI int ECORE_X_EVENT_SELECTION_NOTIFY; 798EAPI extern int ECORE_X_EVENT_SELECTION_NOTIFY;
795extern EAPI int ECORE_X_EVENT_CLIENT_MESSAGE; 799EAPI extern int ECORE_X_EVENT_CLIENT_MESSAGE;
796extern EAPI int ECORE_X_EVENT_WINDOW_SHAPE; 800EAPI extern int ECORE_X_EVENT_WINDOW_SHAPE;
797extern EAPI int ECORE_X_EVENT_SYNC_COUNTER; 801EAPI extern int ECORE_X_EVENT_SYNC_COUNTER;
798extern EAPI int ECORE_X_EVENT_SYNC_ALARM; 802EAPI extern int ECORE_X_EVENT_SYNC_ALARM;
799extern EAPI int ECORE_X_EVENT_SCREEN_CHANGE; 803EAPI extern int ECORE_X_EVENT_SCREEN_CHANGE;
800 804
801extern EAPI int ECORE_X_EVENT_WINDOW_DELETE_REQUEST; 805EAPI extern int ECORE_X_EVENT_WINDOW_DELETE_REQUEST;
802/* 806/*
803extern EAPI int ECORE_X_EVENT_WINDOW_PROP_TITLE_CHANGE; 807EAPI extern int ECORE_X_EVENT_WINDOW_PROP_TITLE_CHANGE;
804extern EAPI int ECORE_X_EVENT_WINDOW_PROP_VISIBLE_TITLE_CHANGE; 808EAPI extern int ECORE_X_EVENT_WINDOW_PROP_VISIBLE_TITLE_CHANGE;
805extern EAPI int ECORE_X_EVENT_WINDOW_PROP_ICON_NAME_CHANGE; 809EAPI extern int ECORE_X_EVENT_WINDOW_PROP_ICON_NAME_CHANGE;
806extern EAPI int ECORE_X_EVENT_WINDOW_PROP_VISIBLE_ICON_NAME_CHANGE; 810EAPI extern int ECORE_X_EVENT_WINDOW_PROP_VISIBLE_ICON_NAME_CHANGE;
807extern EAPI int ECORE_X_EVENT_WINDOW_PROP_CLIENT_MACHINE_CHANGE; 811EAPI extern int ECORE_X_EVENT_WINDOW_PROP_CLIENT_MACHINE_CHANGE;
808extern EAPI int ECORE_X_EVENT_WINDOW_PROP_NAME_CLASS_CHANGE; 812EAPI extern int ECORE_X_EVENT_WINDOW_PROP_NAME_CLASS_CHANGE;
809extern EAPI int ECORE_X_EVENT_WINDOW_PROP_PID_CHANGE; 813EAPI extern int ECORE_X_EVENT_WINDOW_PROP_PID_CHANGE;
810extern EAPI int ECORE_X_EVENT_WINDOW_PROP_DESKTOP_CHANGE; 814EAPI extern int ECORE_X_EVENT_WINDOW_PROP_DESKTOP_CHANGE;
811*/ 815*/
812 816
813extern EAPI int ECORE_X_EVENT_WINDOW_MOVE_RESIZE_REQUEST; 817EAPI extern int ECORE_X_EVENT_WINDOW_MOVE_RESIZE_REQUEST;
814extern EAPI int ECORE_X_EVENT_WINDOW_STATE_REQUEST; 818EAPI extern int ECORE_X_EVENT_WINDOW_STATE_REQUEST;
815extern EAPI int ECORE_X_EVENT_FRAME_EXTENTS_REQUEST; 819EAPI extern int ECORE_X_EVENT_FRAME_EXTENTS_REQUEST;
816extern EAPI int ECORE_X_EVENT_PING; 820EAPI extern int ECORE_X_EVENT_PING;
817extern EAPI int ECORE_X_EVENT_DESKTOP_CHANGE; 821EAPI extern int ECORE_X_EVENT_DESKTOP_CHANGE;
818 822
819extern EAPI int ECORE_X_EVENT_STARTUP_SEQUENCE_NEW; 823EAPI extern int ECORE_X_EVENT_STARTUP_SEQUENCE_NEW;
820extern EAPI int ECORE_X_EVENT_STARTUP_SEQUENCE_CHANGE; 824EAPI extern int ECORE_X_EVENT_STARTUP_SEQUENCE_CHANGE;
821extern EAPI int ECORE_X_EVENT_STARTUP_SEQUENCE_REMOVE; 825EAPI extern int ECORE_X_EVENT_STARTUP_SEQUENCE_REMOVE;
822 826
823extern EAPI int ECORE_X_EVENT_XDND_ENTER; 827EAPI extern int ECORE_X_EVENT_XDND_ENTER;
824extern EAPI int ECORE_X_EVENT_XDND_POSITION; 828EAPI extern int ECORE_X_EVENT_XDND_POSITION;
825extern EAPI int ECORE_X_EVENT_XDND_STATUS; 829EAPI extern int ECORE_X_EVENT_XDND_STATUS;
826extern EAPI int ECORE_X_EVENT_XDND_LEAVE; 830EAPI extern int ECORE_X_EVENT_XDND_LEAVE;
827extern EAPI int ECORE_X_EVENT_XDND_DROP; 831EAPI extern int ECORE_X_EVENT_XDND_DROP;
828extern EAPI int ECORE_X_EVENT_XDND_FINISHED; 832EAPI extern int ECORE_X_EVENT_XDND_FINISHED;
829 833
830extern EAPI int ECORE_X_MODIFIER_SHIFT; 834EAPI extern int ECORE_X_MODIFIER_SHIFT;
831extern EAPI int ECORE_X_MODIFIER_CTRL; 835EAPI extern int ECORE_X_MODIFIER_CTRL;
832extern EAPI int ECORE_X_MODIFIER_ALT; 836EAPI extern int ECORE_X_MODIFIER_ALT;
833extern EAPI int ECORE_X_MODIFIER_WIN; 837EAPI extern int ECORE_X_MODIFIER_WIN;
834 838
835extern EAPI int ECORE_X_LOCK_SCROLL; 839EAPI extern int ECORE_X_LOCK_SCROLL;
836extern EAPI int ECORE_X_LOCK_NUM; 840EAPI extern int ECORE_X_LOCK_NUM;
837extern EAPI int ECORE_X_LOCK_CAPS; 841EAPI extern int ECORE_X_LOCK_CAPS;
838 842
839typedef enum _Ecore_X_WM_Protocol { 843typedef enum _Ecore_X_WM_Protocol {
840 /** 844 /**
diff --git a/legacy/ecore/src/lib/ecore_x/Ecore_X_Atoms.h b/legacy/ecore/src/lib/ecore_x/Ecore_X_Atoms.h
index a194bb9547..97d4fc586a 100644
--- a/legacy/ecore/src/lib/ecore_x/Ecore_X_Atoms.h
+++ b/legacy/ecore/src/lib/ecore_x/Ecore_X_Atoms.h
@@ -10,144 +10,144 @@
10 */ 10 */
11 11
12/* General */ 12/* General */
13extern Ecore_X_Atom ECORE_X_ATOM_UTF8_STRING; 13EAPI extern Ecore_X_Atom ECORE_X_ATOM_UTF8_STRING;
14extern Ecore_X_Atom ECORE_X_ATOM_FILE_NAME; 14EAPI extern Ecore_X_Atom ECORE_X_ATOM_FILE_NAME;
15extern Ecore_X_Atom ECORE_X_ATOM_STRING; 15EAPI extern Ecore_X_Atom ECORE_X_ATOM_STRING;
16extern Ecore_X_Atom ECORE_X_ATOM_TEXT; 16EAPI extern Ecore_X_Atom ECORE_X_ATOM_TEXT;
17extern Ecore_X_Atom ECORE_X_ATOM_COMPOUND_TEXT; 17EAPI extern Ecore_X_Atom ECORE_X_ATOM_COMPOUND_TEXT;
18 18
19/* ICCCM */ 19/* ICCCM */
20extern Ecore_X_Atom ECORE_X_ATOM_WM_STATE; 20EAPI extern Ecore_X_Atom ECORE_X_ATOM_WM_STATE;
21extern Ecore_X_Atom ECORE_X_ATOM_WM_DELETE_WINDOW; 21EAPI extern Ecore_X_Atom ECORE_X_ATOM_WM_DELETE_WINDOW;
22extern Ecore_X_Atom ECORE_X_ATOM_WM_TAKE_FOCUS; 22EAPI extern Ecore_X_Atom ECORE_X_ATOM_WM_TAKE_FOCUS;
23extern Ecore_X_Atom ECORE_X_ATOM_WM_PROTOCOLS; 23EAPI extern Ecore_X_Atom ECORE_X_ATOM_WM_PROTOCOLS;
24extern Ecore_X_Atom ECORE_X_ATOM_WM_CLASS; 24EAPI extern Ecore_X_Atom ECORE_X_ATOM_WM_CLASS;
25extern Ecore_X_Atom ECORE_X_ATOM_WM_NAME; 25EAPI extern Ecore_X_Atom ECORE_X_ATOM_WM_NAME;
26extern Ecore_X_Atom ECORE_X_ATOM_WM_COMMAND; 26EAPI extern Ecore_X_Atom ECORE_X_ATOM_WM_COMMAND;
27extern Ecore_X_Atom ECORE_X_ATOM_WM_ICON_NAME; 27EAPI extern Ecore_X_Atom ECORE_X_ATOM_WM_ICON_NAME;
28extern Ecore_X_Atom ECORE_X_ATOM_WM_CLIENT_MACHINE; 28EAPI extern Ecore_X_Atom ECORE_X_ATOM_WM_CLIENT_MACHINE;
29extern Ecore_X_Atom ECORE_X_ATOM_WM_CHANGE_STATE; 29EAPI extern Ecore_X_Atom ECORE_X_ATOM_WM_CHANGE_STATE;
30extern Ecore_X_Atom ECORE_X_ATOM_WM_COLORMAP_WINDOWS; 30EAPI extern Ecore_X_Atom ECORE_X_ATOM_WM_COLORMAP_WINDOWS;
31extern Ecore_X_Atom ECORE_X_ATOM_WM_WINDOW_ROLE; 31EAPI extern Ecore_X_Atom ECORE_X_ATOM_WM_WINDOW_ROLE;
32extern Ecore_X_Atom ECORE_X_ATOM_WM_HINTS; 32EAPI extern Ecore_X_Atom ECORE_X_ATOM_WM_HINTS;
33extern Ecore_X_Atom ECORE_X_ATOM_WM_NORMAL_HINTS; 33EAPI extern Ecore_X_Atom ECORE_X_ATOM_WM_NORMAL_HINTS;
34extern Ecore_X_Atom ECORE_X_ATOM_WM_CLIENT_LEADER; 34EAPI extern Ecore_X_Atom ECORE_X_ATOM_WM_CLIENT_LEADER;
35extern Ecore_X_Atom ECORE_X_ATOM_WM_TRANSIENT_FOR; 35EAPI extern Ecore_X_Atom ECORE_X_ATOM_WM_TRANSIENT_FOR;
36extern Ecore_X_Atom ECORE_X_ATOM_WM_SAVE_YOURSELF; 36EAPI extern Ecore_X_Atom ECORE_X_ATOM_WM_SAVE_YOURSELF;
37 37
38/* MWM */ 38/* MWM */
39extern Ecore_X_Atom ECORE_X_ATOM_MOTIF_WM_HINTS; 39EAPI extern Ecore_X_Atom ECORE_X_ATOM_MOTIF_WM_HINTS;
40 40
41/* GNOME */ 41/* GNOME */
42extern Ecore_X_Atom ECORE_X_ATOM_WIN_LAYER; 42EAPI extern Ecore_X_Atom ECORE_X_ATOM_WIN_LAYER;
43 43
44/* EWMH */ 44/* EWMH */
45extern Ecore_X_Atom ECORE_X_ATOM_NET_SUPPORTED; 45EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_SUPPORTED;
46extern Ecore_X_Atom ECORE_X_ATOM_NET_SUPPORTING_WM_CHECK; 46EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_SUPPORTING_WM_CHECK;
47 47
48extern Ecore_X_Atom ECORE_X_ATOM_NET_NUMBER_OF_DESKTOPS; 48EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_NUMBER_OF_DESKTOPS;
49extern Ecore_X_Atom ECORE_X_ATOM_NET_VIRTUAL_ROOTS; 49EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_VIRTUAL_ROOTS;
50extern Ecore_X_Atom ECORE_X_ATOM_NET_DESKTOP_NAMES; 50EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_DESKTOP_NAMES;
51extern Ecore_X_Atom ECORE_X_ATOM_NET_DESKTOP_GEOMETRY; 51EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_DESKTOP_GEOMETRY;
52extern Ecore_X_Atom ECORE_X_ATOM_NET_DESKTOP_VIEWPORT; 52EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_DESKTOP_VIEWPORT;
53extern Ecore_X_Atom ECORE_X_ATOM_NET_DESKTOP_LAYOUT; 53EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_DESKTOP_LAYOUT;
54extern Ecore_X_Atom ECORE_X_ATOM_NET_WORKAREA; 54EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WORKAREA;
55 55
56extern Ecore_X_Atom ECORE_X_ATOM_NET_CURRENT_DESKTOP; 56EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_CURRENT_DESKTOP;
57extern Ecore_X_Atom ECORE_X_ATOM_NET_SHOWING_DESKTOP; 57EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_SHOWING_DESKTOP;
58 58
59extern Ecore_X_Atom ECORE_X_ATOM_NET_CLIENT_LIST; 59EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_CLIENT_LIST;
60extern Ecore_X_Atom ECORE_X_ATOM_NET_CLIENT_LIST_STACKING; 60EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_CLIENT_LIST_STACKING;
61extern Ecore_X_Atom ECORE_X_ATOM_NET_ACTIVE_WINDOW; 61EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_ACTIVE_WINDOW;
62 62
63extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_NAME; 63EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_NAME;
64extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_VISIBLE_NAME; 64EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_VISIBLE_NAME;
65extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ICON_NAME; 65EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ICON_NAME;
66extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_VISIBLE_ICON_NAME; 66EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_VISIBLE_ICON_NAME;
67extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_DESKTOP; 67EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_DESKTOP;
68extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STRUT; 68EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STRUT;
69extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STRUT_PARTIAL; 69EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STRUT_PARTIAL;
70extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ICON_GEOMETRY; 70EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ICON_GEOMETRY;
71extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ICON; 71EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ICON;
72extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_PID; 72EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_PID;
73extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_HANDLED_ICONS; 73EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_HANDLED_ICONS;
74extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_USER_TIME; 74EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_USER_TIME;
75 75
76extern Ecore_X_Atom ECORE_X_ATOM_NET_CLOSE_WINDOW; 76EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_CLOSE_WINDOW;
77extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_MOVERESIZE; 77EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_MOVERESIZE;
78 78
79extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ALLOWED_ACTIONS; 79EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ALLOWED_ACTIONS;
80extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_MOVE; 80EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_MOVE;
81extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_RESIZE; 81EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_RESIZE;
82extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_MINIMIZE; 82EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_MINIMIZE;
83extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_SHADE; 83EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_SHADE;
84extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_STICK; 84EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_STICK;
85extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_MAXIMIZE_HORZ; 85EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_MAXIMIZE_HORZ;
86extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_MAXIMIZE_VERT; 86EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_MAXIMIZE_VERT;
87extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_FULLSCREEN; 87EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_FULLSCREEN;
88extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_CHANGE_DESKTOP; 88EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_CHANGE_DESKTOP;
89extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_CLOSE; /*x*/ 89EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_CLOSE; /*x*/
90 90
91extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_WINDOW_TYPE; 91EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_WINDOW_TYPE;
92extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_WINDOW_TYPE_DESKTOP; 92EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_WINDOW_TYPE_DESKTOP;
93extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_WINDOW_TYPE_DOCK; 93EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_WINDOW_TYPE_DOCK;
94extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_WINDOW_TYPE_TOOLBAR; 94EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_WINDOW_TYPE_TOOLBAR;
95extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_WINDOW_TYPE_MENU; 95EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_WINDOW_TYPE_MENU;
96extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_WINDOW_TYPE_UTILITY; 96EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_WINDOW_TYPE_UTILITY;
97extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_WINDOW_TYPE_SPLASH; 97EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_WINDOW_TYPE_SPLASH;
98extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_WINDOW_TYPE_DIALOG; 98EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_WINDOW_TYPE_DIALOG;
99extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_WINDOW_TYPE_NORMAL; 99EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_WINDOW_TYPE_NORMAL;
100 100
101extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STATE; 101EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STATE;
102extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STATE_MODAL; 102EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STATE_MODAL;
103extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STATE_STICKY; 103EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STATE_STICKY;
104extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STATE_MAXIMIZED_VERT; 104EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STATE_MAXIMIZED_VERT;
105extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STATE_MAXIMIZED_HORZ; 105EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STATE_MAXIMIZED_HORZ;
106extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STATE_SHADED; 106EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STATE_SHADED;
107extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STATE_SKIP_TASKBAR; 107EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STATE_SKIP_TASKBAR;
108extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STATE_SKIP_PAGER; 108EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STATE_SKIP_PAGER;
109extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STATE_HIDDEN; 109EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STATE_HIDDEN;
110extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STATE_FULLSCREEN; 110EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STATE_FULLSCREEN;
111extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STATE_ABOVE; 111EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STATE_ABOVE;
112extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STATE_BELOW; 112EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STATE_BELOW;
113extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STATE_DEMANDS_ATTENTION; 113EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STATE_DEMANDS_ATTENTION;
114 114
115extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_WINDOW_OPACITY; 115EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_WINDOW_OPACITY;
116 116
117extern Ecore_X_Atom ECORE_X_ATOM_NET_FRAME_EXTENTS; 117EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_FRAME_EXTENTS;
118extern Ecore_X_Atom ECORE_X_ATOM_NET_REQUEST_FRAME_EXTENTS; 118EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_REQUEST_FRAME_EXTENTS;
119 119
120extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_PING; 120EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_PING;
121extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_SYNC_REQUEST; 121EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_SYNC_REQUEST;
122extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_SYNC_REQUEST_COUNTER; 122EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_SYNC_REQUEST_COUNTER;
123 123
124extern Ecore_X_Atom ECORE_X_ATOM_NET_STARTUP_INFO_BEGIN; 124EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_STARTUP_INFO_BEGIN;
125extern Ecore_X_Atom ECORE_X_ATOM_NET_STARTUP_INFO; 125EAPI extern Ecore_X_Atom ECORE_X_ATOM_NET_STARTUP_INFO;
126 126
127/* Selections */ 127/* Selections */
128extern Ecore_X_Atom ECORE_X_ATOM_SELECTION_TARGETS; 128EAPI extern Ecore_X_Atom ECORE_X_ATOM_SELECTION_TARGETS;
129extern Ecore_X_Atom ECORE_X_ATOM_SELECTION_PRIMARY; 129EAPI extern Ecore_X_Atom ECORE_X_ATOM_SELECTION_PRIMARY;
130extern Ecore_X_Atom ECORE_X_ATOM_SELECTION_SECONDARY; 130EAPI extern Ecore_X_Atom ECORE_X_ATOM_SELECTION_SECONDARY;
131extern Ecore_X_Atom ECORE_X_ATOM_SELECTION_CLIPBOARD; 131EAPI extern Ecore_X_Atom ECORE_X_ATOM_SELECTION_CLIPBOARD;
132extern Ecore_X_Atom ECORE_X_ATOM_SELECTION_PROP_PRIMARY; 132EAPI extern Ecore_X_Atom ECORE_X_ATOM_SELECTION_PROP_PRIMARY;
133extern Ecore_X_Atom ECORE_X_ATOM_SELECTION_PROP_SECONDARY; 133EAPI extern Ecore_X_Atom ECORE_X_ATOM_SELECTION_PROP_SECONDARY;
134extern Ecore_X_Atom ECORE_X_ATOM_SELECTION_PROP_CLIPBOARD; 134EAPI extern Ecore_X_Atom ECORE_X_ATOM_SELECTION_PROP_CLIPBOARD;
135 135
136/* DND */ 136/* DND */
137extern Ecore_X_Atom ECORE_X_ATOM_SELECTION_XDND; 137EAPI extern Ecore_X_Atom ECORE_X_ATOM_SELECTION_XDND;
138extern Ecore_X_Atom ECORE_X_ATOM_SELECTION_PROP_XDND; 138EAPI extern Ecore_X_Atom ECORE_X_ATOM_SELECTION_PROP_XDND;
139extern Ecore_X_Atom ECORE_X_ATOM_XDND_AWARE; 139EAPI extern Ecore_X_Atom ECORE_X_ATOM_XDND_AWARE;
140extern Ecore_X_Atom ECORE_X_ATOM_XDND_TYPE_LIST; 140EAPI extern Ecore_X_Atom ECORE_X_ATOM_XDND_TYPE_LIST;
141extern Ecore_X_Atom ECORE_X_ATOM_XDND_ACTION_COPY; 141EAPI extern Ecore_X_Atom ECORE_X_ATOM_XDND_ACTION_COPY;
142extern Ecore_X_Atom ECORE_X_ATOM_XDND_ACTION_PRIVATE; 142EAPI extern Ecore_X_Atom ECORE_X_ATOM_XDND_ACTION_PRIVATE;
143extern Ecore_X_Atom ECORE_X_ATOM_XDND_ACTION_ASK; 143EAPI extern Ecore_X_Atom ECORE_X_ATOM_XDND_ACTION_ASK;
144extern Ecore_X_Atom ECORE_X_ATOM_XDND_ACTION_LIST; 144EAPI extern Ecore_X_Atom ECORE_X_ATOM_XDND_ACTION_LIST;
145extern Ecore_X_Atom ECORE_X_ATOM_XDND_ACTION_DESCRIPTION; 145EAPI extern Ecore_X_Atom ECORE_X_ATOM_XDND_ACTION_DESCRIPTION;
146extern Ecore_X_Atom ECORE_X_ATOM_XDND_ENTER; 146EAPI extern Ecore_X_Atom ECORE_X_ATOM_XDND_ENTER;
147extern Ecore_X_Atom ECORE_X_ATOM_XDND_LEAVE; 147EAPI extern Ecore_X_Atom ECORE_X_ATOM_XDND_LEAVE;
148extern Ecore_X_Atom ECORE_X_ATOM_XDND_STATUS; 148EAPI extern Ecore_X_Atom ECORE_X_ATOM_XDND_STATUS;
149extern Ecore_X_Atom ECORE_X_ATOM_XDND_POSITION; 149EAPI extern Ecore_X_Atom ECORE_X_ATOM_XDND_POSITION;
150extern Ecore_X_Atom ECORE_X_ATOM_XDND_DROP; 150EAPI extern Ecore_X_Atom ECORE_X_ATOM_XDND_DROP;
151extern Ecore_X_Atom ECORE_X_ATOM_XDND_FINISHED; 151EAPI extern Ecore_X_Atom ECORE_X_ATOM_XDND_FINISHED;
152 152
153#endif /* _ECORE_X_ATOMS_H */ 153#endif /* _ECORE_X_ATOMS_H */
diff --git a/legacy/edje/src/bin/edje_cc.h b/legacy/edje/src/bin/edje_cc.h
index d489f76315..8456804e7b 100644
--- a/legacy/edje/src/bin/edje_cc.h
+++ b/legacy/edje/src/bin/edje_cc.h
@@ -3,20 +3,6 @@
3 3
4#include "edje_main.h" 4#include "edje_main.h"
5 5
6#include <stdio.h>
7#include <stdlib.h>
8#include <unistd.h>
9#include <fcntl.h>
10#include <errno.h>
11#include <sys/types.h>
12#include <sys/stat.h>
13#include <stdarg.h>
14#include <locale.h>
15#include <ctype.h>
16#ifdef HAVE_ALLOCA_H
17#include <alloca.h>
18#endif
19
20/* types */ 6/* types */
21typedef struct _New_Object_Handler New_Object_Handler; 7typedef struct _New_Object_Handler New_Object_Handler;
22typedef struct _New_Statement_Handler New_Statement_Handler; 8typedef struct _New_Statement_Handler New_Statement_Handler;
diff --git a/legacy/edje/src/bin/edje_cc_parse.c b/legacy/edje/src/bin/edje_cc_parse.c
index 74ecd5ea3f..6b5ce8cd51 100644
--- a/legacy/edje/src/bin/edje_cc_parse.c
+++ b/legacy/edje/src/bin/edje_cc_parse.c
@@ -666,10 +666,8 @@ compile(void)
666 * Redirecting the output is required for MacOS 10.3, and works fine 666 * Redirecting the output is required for MacOS 10.3, and works fine
667 * on other systems. 667 * on other systems.
668 */ 668 */
669 snprintf(buf, sizeof(buf), "cat %s | cpp -I%s -E %s > %s", 669 snprintf(buf, sizeof(buf), "cat %s | cpp -I%s %s > %s",
670 file_in, inc, def, tmpn); 670 file_in, inc, def, tmpn);
671 /* snprintf(buf, sizeof(buf), "cpp -I%s %s %s %s",
672 inc, def, file_in, tmpn); */
673 ret = system(buf); 671 ret = system(buf);
674 if (ret < 0) 672 if (ret < 0)
675 { 673 {
diff --git a/legacy/edje/src/bin/edje_main.h b/legacy/edje/src/bin/edje_main.h
index a2f62e624c..457dc8ee17 100644
--- a/legacy/edje/src/bin/edje_main.h
+++ b/legacy/edje/src/bin/edje_main.h
@@ -16,6 +16,20 @@
16#include <Ecore_Evas.h> 16#include <Ecore_Evas.h>
17#include <Eet.h> 17#include <Eet.h>
18#include "Edje.h" 18#include "Edje.h"
19#include <stdio.h>
20#include <stdlib.h>
21#include <unistd.h>
22#include <fcntl.h>
23#include <errno.h>
24#include <sys/types.h>
25#include <sys/stat.h>
26#include <stdarg.h>
27#include <locale.h>
28#include <ctype.h>
29#ifdef HAVE_ALLOCA_H
30#include <alloca.h>
31#endif
32
19#include "edje_private.h" 33#include "edje_private.h"
20 34
21#define DAT PACKAGE_DATA_DIR"/" 35#define DAT PACKAGE_DATA_DIR"/"
diff --git a/legacy/edje/src/lib/Edje.h b/legacy/edje/src/lib/Edje.h
index 9a46d7b58f..580ed6fefc 100644
--- a/legacy/edje/src/lib/Edje.h
+++ b/legacy/edje/src/lib/Edje.h
@@ -13,8 +13,12 @@
13# define EAPI __declspec(dllimport) 13# define EAPI __declspec(dllimport)
14# endif 14# endif
15#else 15#else
16# ifdef GCC_HASCLASSVISIBILITY 16# ifdef __GNUC__
17# define EAPI __attribute__ ((visibility("default"))) 17# if __GNUC__ >= 4
18# define EAPI __attribute__ ((visibility("default")))
19# else
20# define EAPI
21# endif
18# else 22# else
19# define EAPI 23# define EAPI
20# endif 24# endif
diff --git a/legacy/edje/src/lib/edje_private.h b/legacy/edje/src/lib/edje_private.h
index 03157eb5cc..32aa98b58d 100644
--- a/legacy/edje/src/lib/edje_private.h
+++ b/legacy/edje/src/lib/edje_private.h
@@ -31,6 +31,34 @@
31#include <string.h> 31#include <string.h>
32#include <limits.h> 32#include <limits.h>
33 33
34
35#ifdef EAPI
36#undef EAPI
37#endif
38#ifdef WIN32
39# ifdef BUILDING_DLL
40# define EAPI __declspec(dllexport)
41# else
42# define EAPI __declspec(dllimport)
43# endif
44#else
45# ifdef __GNUC__
46# if __GNUC__ >= 4
47# define EAPI __attribute__ ((visibility("default")))
48# else
49# define EAPI
50# endif
51# else
52# define EAPI
53# endif
54#endif
55
56#ifdef __GNUC__
57# if __GNUC__ >= 4
58# pragma GCC visibility push(hidden)
59# endif
60#endif
61
34#ifndef ABS 62#ifndef ABS
35#define ABS(x) ((x) < 0 ? -(x) : (x)) 63#define ABS(x) ((x) < 0 ? -(x) : (x))
36#endif 64#endif
@@ -756,22 +784,22 @@ struct _Edje_Message
756 unsigned char *msg; 784 unsigned char *msg;
757}; 785};
758 786
759extern Eet_Data_Descriptor *_edje_edd_edje_file; 787EAPI extern Eet_Data_Descriptor *_edje_edd_edje_file;
760extern Eet_Data_Descriptor *_edje_edd_edje_style; 788EAPI extern Eet_Data_Descriptor *_edje_edd_edje_style;
761extern Eet_Data_Descriptor *_edje_edd_edje_style_tag; 789EAPI extern Eet_Data_Descriptor *_edje_edd_edje_style_tag;
762extern Eet_Data_Descriptor *_edje_edd_edje_data; 790EAPI extern Eet_Data_Descriptor *_edje_edd_edje_data;
763extern Eet_Data_Descriptor *_edje_edd_edje_font_directory; 791EAPI extern Eet_Data_Descriptor *_edje_edd_edje_font_directory;
764extern Eet_Data_Descriptor *_edje_edd_edje_font_directory_entry; 792EAPI extern Eet_Data_Descriptor *_edje_edd_edje_font_directory_entry;
765extern Eet_Data_Descriptor *_edje_edd_edje_image_directory; 793EAPI extern Eet_Data_Descriptor *_edje_edd_edje_image_directory;
766extern Eet_Data_Descriptor *_edje_edd_edje_image_directory_entry; 794EAPI extern Eet_Data_Descriptor *_edje_edd_edje_image_directory_entry;
767extern Eet_Data_Descriptor *_edje_edd_edje_program; 795EAPI extern Eet_Data_Descriptor *_edje_edd_edje_program;
768extern Eet_Data_Descriptor *_edje_edd_edje_program_target; 796EAPI extern Eet_Data_Descriptor *_edje_edd_edje_program_target;
769extern Eet_Data_Descriptor *_edje_edd_edje_part_collection_directory; 797EAPI extern Eet_Data_Descriptor *_edje_edd_edje_part_collection_directory;
770extern Eet_Data_Descriptor *_edje_edd_edje_part_collection_directory_entry; 798EAPI extern Eet_Data_Descriptor *_edje_edd_edje_part_collection_directory_entry;
771extern Eet_Data_Descriptor *_edje_edd_edje_part_collection; 799EAPI extern Eet_Data_Descriptor *_edje_edd_edje_part_collection;
772extern Eet_Data_Descriptor *_edje_edd_edje_part; 800EAPI extern Eet_Data_Descriptor *_edje_edd_edje_part;
773extern Eet_Data_Descriptor *_edje_edd_edje_part_description; 801EAPI extern Eet_Data_Descriptor *_edje_edd_edje_part_description;
774extern Eet_Data_Descriptor *_edje_edd_edje_part_image_id; 802EAPI extern Eet_Data_Descriptor *_edje_edd_edje_part_image_id;
775 803
776extern int _edje_anim_count; 804extern int _edje_anim_count;
777extern Ecore_Animator *_edje_timer; 805extern Ecore_Animator *_edje_timer;
diff --git a/legacy/eet/src/lib/Eet.h b/legacy/eet/src/lib/Eet.h
index 6c24510a0a..f0be7f3b01 100644
--- a/legacy/eet/src/lib/Eet.h
+++ b/legacy/eet/src/lib/Eet.h
@@ -13,8 +13,12 @@
13# define EAPI __declspec(dllimport) 13# define EAPI __declspec(dllimport)
14# endif 14# endif
15#else 15#else
16# ifdef GCC_HASCLASSVISIBILITY 16# ifdef __GNUC__
17# define EAPI __attribute__ ((visibility("default"))) 17# if __GNUC__ >= 4
18# define EAPI __attribute__ ((visibility("default")))
19# else
20# define EAPI
21# endif
18# else 22# else
19# define EAPI 23# define EAPI
20# endif 24# endif
@@ -673,7 +677,14 @@ extern "C" {
673 * 677 *
674 */ 678 */
675 EAPI Eet_Data_Descriptor *eet_data_descriptor_new(const char *name, int size, void *(*func_list_next) (void *l), void *(*func_list_append) (void *l, void *d), void *(*func_list_data) (void *l), void *(*func_list_free) (void *l), void (*func_hash_foreach) (void *h, int (*func) (void *h, const char *k, void *dt, void *fdt), void *fdt), void *(*func_hash_add) (void *h, const char *k, void *d), void (*func_hash_free) (void *h)); 679 EAPI Eet_Data_Descriptor *eet_data_descriptor_new(const char *name, int size, void *(*func_list_next) (void *l), void *(*func_list_append) (void *l, void *d), void *(*func_list_data) (void *l), void *(*func_list_free) (void *l), void (*func_hash_foreach) (void *h, int (*func) (void *h, const char *k, void *dt, void *fdt), void *fdt), void *(*func_hash_add) (void *h, const char *k, void *d), void (*func_hash_free) (void *h));
676 680 /*
681 * FIXME:
682 *
683 * moving to this api from the old above. this will break things when the
684 * move happens - but be warned
685 */
686 EAPI Eet_Data_Descriptor *eet_data_descriptor2_new(Eet_Data_Descriptor_Class *eddc);
687
677 /** 688 /**
678 * This function frees a data descriptor when it is not needed anymore. 689 * This function frees a data descriptor when it is not needed anymore.
679 * @param edd The data descriptor to free. 690 * @param edd The data descriptor to free.
diff --git a/legacy/eet/src/lib/eet_data.c b/legacy/eet/src/lib/eet_data.c
index 3cef65b6bd..0950abbbd3 100644
--- a/legacy/eet/src/lib/eet_data.c
+++ b/legacy/eet/src/lib/eet_data.c
@@ -39,6 +39,12 @@
39 * 39 *
40 */ 40 */
41 41
42#ifdef __GNUC__
43# if __GNUC__ >= 4
44# pragma GCC visibility push(hidden)
45# endif
46#endif
47
42/*---*/ 48/*---*/
43 49
44typedef struct _Eet_Data_Element Eet_Data_Element; 50typedef struct _Eet_Data_Element Eet_Data_Element;
@@ -712,7 +718,7 @@ _eet_str_free(const char *str)
712 718
713/*---*/ 719/*---*/
714 720
715Eet_Data_Descriptor * 721EAPI Eet_Data_Descriptor *
716eet_data_descriptor_new(const char *name, 722eet_data_descriptor_new(const char *name,
717 int size, 723 int size,
718 void *(*func_list_next) (void *l), 724 void *(*func_list_next) (void *l),
@@ -749,7 +755,7 @@ eet_data_descriptor_new(const char *name,
749} 755}
750 756
751/* new replcement */ 757/* new replcement */
752Eet_Data_Descriptor * 758EAPI Eet_Data_Descriptor *
753eet_data_descriptor2_new(Eet_Data_Descriptor_Class *eddc) 759eet_data_descriptor2_new(Eet_Data_Descriptor_Class *eddc)
754{ 760{
755 Eet_Data_Descriptor *edd; 761 Eet_Data_Descriptor *edd;
@@ -781,7 +787,7 @@ eet_data_descriptor2_new(Eet_Data_Descriptor_Class *eddc)
781 return edd; 787 return edd;
782} 788}
783 789
784void 790EAPI void
785eet_data_descriptor_free(Eet_Data_Descriptor *edd) 791eet_data_descriptor_free(Eet_Data_Descriptor *edd)
786{ 792{
787 _eet_descriptor_hash_free(edd); 793 _eet_descriptor_hash_free(edd);
@@ -790,7 +796,7 @@ eet_data_descriptor_free(Eet_Data_Descriptor *edd)
790 free(edd); 796 free(edd);
791} 797}
792 798
793void 799EAPI void
794eet_data_descriptor_element_add(Eet_Data_Descriptor *edd, 800eet_data_descriptor_element_add(Eet_Data_Descriptor *edd,
795 const char *name, int type, 801 const char *name, int type,
796 int group_type, 802 int group_type,
@@ -853,7 +859,7 @@ eet_data_descriptor_element_add(Eet_Data_Descriptor *edd,
853 ede->subtype = subtype; 859 ede->subtype = subtype;
854} 860}
855 861
856void * 862EAPI void *
857eet_data_read(Eet_File *ef, Eet_Data_Descriptor *edd, char *name) 863eet_data_read(Eet_File *ef, Eet_Data_Descriptor *edd, char *name)
858{ 864{
859 void *data_dec; 865 void *data_dec;
@@ -867,7 +873,7 @@ eet_data_read(Eet_File *ef, Eet_Data_Descriptor *edd, char *name)
867 return data_dec; 873 return data_dec;
868} 874}
869 875
870int 876EAPI int
871eet_data_write(Eet_File *ef, Eet_Data_Descriptor *edd, char *name, void *data, int compress) 877eet_data_write(Eet_File *ef, Eet_Data_Descriptor *edd, char *name, void *data, int compress)
872{ 878{
873 void *data_enc; 879 void *data_enc;
@@ -1037,7 +1043,7 @@ _eet_freelist_str_unref(void)
1037 freelist_str_ref--; 1043 freelist_str_ref--;
1038} 1044}
1039 1045
1040void * 1046EAPI void *
1041eet_data_descriptor_decode(Eet_Data_Descriptor *edd, 1047eet_data_descriptor_decode(Eet_Data_Descriptor *edd,
1042 void *data_in, 1048 void *data_in,
1043 int size_in) 1049 int size_in)
@@ -1126,7 +1132,7 @@ eet_data_descriptor_decode(Eet_Data_Descriptor *edd,
1126 { 1132 {
1127 char **str, *str2; 1133 char **str, *str2;
1128 1134
1129 str = (((char *)data) + ede->offset); 1135 str = (char **)(((char *)data) + ede->offset);
1130 if (*str) 1136 if (*str)
1131 { 1137 {
1132 str2 = edd->func.str_alloc(*str); 1138 str2 = edd->func.str_alloc(*str);
@@ -1261,7 +1267,7 @@ eet_data_descriptor_decode(Eet_Data_Descriptor *edd,
1261 return data; 1267 return data;
1262} 1268}
1263 1269
1264void * 1270EAPI void *
1265eet_data_descriptor_encode(Eet_Data_Descriptor *edd, 1271eet_data_descriptor_encode(Eet_Data_Descriptor *edd,
1266 void *data_in, 1272 void *data_in,
1267 int *size_ret) 1273 int *size_ret)
diff --git a/legacy/eet/src/lib/eet_image.c b/legacy/eet/src/lib/eet_image.c
index 1d9651d22b..850eaaca84 100644
--- a/legacy/eet/src/lib/eet_image.c
+++ b/legacy/eet/src/lib/eet_image.c
@@ -1,6 +1,12 @@
1#include "Eet.h" 1#include "Eet.h"
2#include "Eet_private.h" 2#include "Eet_private.h"
3 3
4#ifdef __GNUC__
5# if __GNUC__ >= 4
6# pragma GCC visibility push(hidden)
7# endif
8#endif
9
4/*---*/ 10/*---*/
5 11
6typedef struct _JPEG_error_mgr *emptr; 12typedef struct _JPEG_error_mgr *emptr;
@@ -691,7 +697,7 @@ eet_data_image_jpeg_alpha_convert(int *size, void *data, unsigned int w, unsigne
691 return d; 697 return d;
692} 698}
693 699
694int 700EAPI int
695eet_data_image_write(Eet_File *ef, char *name, 701eet_data_image_write(Eet_File *ef, char *name,
696 void *data, unsigned int w, unsigned int h, int alpha, 702 void *data, unsigned int w, unsigned int h, int alpha,
697 int compress, int quality, int lossy) 703 int compress, int quality, int lossy)
@@ -711,7 +717,7 @@ eet_data_image_write(Eet_File *ef, char *name,
711 return 0; 717 return 0;
712} 718}
713 719
714void * 720EAPI void *
715eet_data_image_read(Eet_File *ef, char *name, 721eet_data_image_read(Eet_File *ef, char *name,
716 unsigned int *w, unsigned int *h, int *alpha, 722 unsigned int *w, unsigned int *h, int *alpha,
717 int *compress, int *quality, int *lossy) 723 int *compress, int *quality, int *lossy)
@@ -727,7 +733,7 @@ eet_data_image_read(Eet_File *ef, char *name,
727 return d; 733 return d;
728} 734}
729 735
730int 736EAPI int
731eet_data_image_header_read(Eet_File *ef, char *name, 737eet_data_image_header_read(Eet_File *ef, char *name,
732 unsigned int *w, unsigned int *h, int *alpha, 738 unsigned int *w, unsigned int *h, int *alpha,
733 int *compress, int *quality, int *lossy) 739 int *compress, int *quality, int *lossy)
@@ -743,7 +749,7 @@ eet_data_image_header_read(Eet_File *ef, char *name,
743 return d; 749 return d;
744} 750}
745 751
746void * 752EAPI void *
747eet_data_image_encode(void *data, int *size_ret, unsigned int w, unsigned int h, int alpha, int compress, int quality, int lossy) 753eet_data_image_encode(void *data, int *size_ret, unsigned int w, unsigned int h, int alpha, int compress, int quality, int lossy)
748{ 754{
749 void *d = NULL; 755 void *d = NULL;
@@ -767,7 +773,7 @@ eet_data_image_encode(void *data, int *size_ret, unsigned int w, unsigned int h,
767 return d; 773 return d;
768} 774}
769 775
770int 776EAPI int
771eet_data_image_header_decode(void *data, int size, unsigned int *w, unsigned int *h, int *alpha, int *compress, int *quality, int *lossy) 777eet_data_image_header_decode(void *data, int size, unsigned int *w, unsigned int *h, int *alpha, int *compress, int *quality, int *lossy)
772{ 778{
773 int header[8]; 779 int header[8];
@@ -851,7 +857,7 @@ eet_data_image_header_decode(void *data, int size, unsigned int *w, unsigned int
851 return 0; 857 return 0;
852} 858}
853 859
854void * 860EAPI void *
855eet_data_image_decode(void *data, int size, unsigned int *w, unsigned int *h, int *alpha, int *compress, int *quality, int *lossy) 861eet_data_image_decode(void *data, int size, unsigned int *w, unsigned int *h, int *alpha, int *compress, int *quality, int *lossy)
856{ 862{
857 unsigned int *d = NULL; 863 unsigned int *d = NULL;
diff --git a/legacy/eet/src/lib/eet_lib.c b/legacy/eet/src/lib/eet_lib.c
index 11a1649b3e..acfc91a520 100644
--- a/legacy/eet/src/lib/eet_lib.c
+++ b/legacy/eet/src/lib/eet_lib.c
@@ -5,6 +5,12 @@
5#include "Eet.h" 5#include "Eet.h"
6#include "Eet_private.h" 6#include "Eet_private.h"
7 7
8#ifdef __GNUC__
9# if __GNUC__ >= 4
10# pragma GCC visibility push(hidden)
11# endif
12#endif
13
8#ifdef HAVE_REALPATH 14#ifdef HAVE_REALPATH
9#undef HAVE_REALPATH 15#undef HAVE_REALPATH
10#endif 16#endif
@@ -361,13 +367,13 @@ eet_flush(Eet_File *ef)
361 ef->writes_pending = 0; 367 ef->writes_pending = 0;
362} 368}
363 369
364int 370EAPI int
365eet_init(void) 371eet_init(void)
366{ 372{
367 return ++eet_initcount; 373 return ++eet_initcount;
368} 374}
369 375
370int 376EAPI int
371eet_shutdown(void) 377eet_shutdown(void)
372{ 378{
373 if (--eet_initcount == 0) 379 if (--eet_initcount == 0)
@@ -379,7 +385,7 @@ eet_shutdown(void)
379 return eet_initcount; 385 return eet_initcount;
380} 386}
381 387
382void 388EAPI void
383eet_cacheburst(int on) 389eet_cacheburst(int on)
384{ 390{
385 if (eet_cacheburst_mode == on) return; 391 if (eet_cacheburst_mode == on) return;
@@ -425,7 +431,7 @@ eet_cacheburst(int on)
425 } 431 }
426} 432}
427 433
428Eet_File * 434EAPI Eet_File *
429eet_open(const char *file, Eet_File_Mode mode) 435eet_open(const char *file, Eet_File_Mode mode)
430{ 436{
431 Eet_File *ef; 437 Eet_File *ef;
@@ -711,7 +717,7 @@ eet_open(const char *file, Eet_File_Mode mode)
711 return ef; 717 return ef;
712} 718}
713 719
714Eet_File_Mode 720EAPI Eet_File_Mode
715eet_mode_get(Eet_File *ef) 721eet_mode_get(Eet_File *ef)
716{ 722{
717 /* check to see its' an eet file pointer */ 723 /* check to see its' an eet file pointer */
@@ -721,7 +727,7 @@ eet_mode_get(Eet_File *ef)
721 return ef->mode; 727 return ef->mode;
722} 728}
723 729
724void 730EAPI void
725eet_close(Eet_File *ef) 731eet_close(Eet_File *ef)
726{ 732{
727 /* check to see its' an eet file pointer */ 733 /* check to see its' an eet file pointer */
@@ -781,7 +787,7 @@ eet_close(Eet_File *ef)
781 free(ef); 787 free(ef);
782} 788}
783 789
784void * 790EAPI void *
785eet_read(Eet_File *ef, char *name, int *size_ret) 791eet_read(Eet_File *ef, char *name, int *size_ret)
786{ 792{
787 void *data = NULL; 793 void *data = NULL;
@@ -870,7 +876,7 @@ eet_read(Eet_File *ef, char *name, int *size_ret)
870 return data; 876 return data;
871} 877}
872 878
873int 879EAPI int
874eet_write(Eet_File *ef, char *name, void *data, int size, int compress) 880eet_write(Eet_File *ef, char *name, void *data, int size, int compress)
875{ 881{
876 int data_size; 882 int data_size;
@@ -986,7 +992,7 @@ eet_write(Eet_File *ef, char *name, void *data, int size, int compress)
986 return data_size; 992 return data_size;
987} 993}
988 994
989int 995EAPI int
990eet_delete(Eet_File *ef, char *name) 996eet_delete(Eet_File *ef, char *name)
991{ 997{
992 int hash; 998 int hash;
@@ -1027,7 +1033,7 @@ eet_delete(Eet_File *ef, char *name)
1027 return exists_already; 1033 return exists_already;
1028} 1034}
1029 1035
1030char ** 1036EAPI char **
1031eet_list(Eet_File *ef, char *glob, int *count_ret) 1037eet_list(Eet_File *ef, char *glob, int *count_ret)
1032{ 1038{
1033 char **list_ret = NULL; 1039 char **list_ret = NULL;
@@ -1084,7 +1090,7 @@ eet_list(Eet_File *ef, char *glob, int *count_ret)
1084 return list_ret; 1090 return list_ret;
1085} 1091}
1086 1092
1087int 1093EAPI int
1088eet_num_entries(Eet_File *ef) 1094eet_num_entries(Eet_File *ef)
1089{ 1095{
1090 int i, num, ret = 0; 1096 int i, num, ret = 0;
diff --git a/legacy/eet/src/lib/eet_memfile.c b/legacy/eet/src/lib/eet_memfile.c
index f8c3e947c4..9e5c03d418 100644
--- a/legacy/eet/src/lib/eet_memfile.c
+++ b/legacy/eet/src/lib/eet_memfile.c
@@ -1,6 +1,12 @@
1#include "Eet.h" 1#include "Eet.h"
2#include "Eet_private.h" 2#include "Eet_private.h"
3 3
4#ifdef __GNUC__
5# if __GNUC__ >= 4
6# pragma GCC visibility push(hidden)
7# endif
8#endif
9
4FILE * 10FILE *
5_eet_memfile_read_open(void *data, size_t size) 11_eet_memfile_read_open(void *data, size_t size)
6{ 12{
diff --git a/legacy/embryo/src/lib/Embryo.h b/legacy/embryo/src/lib/Embryo.h
index 366bbd5112..3f7e5d88ec 100644
--- a/legacy/embryo/src/lib/Embryo.h
+++ b/legacy/embryo/src/lib/Embryo.h
@@ -11,8 +11,12 @@
11# define EAPI __declspec(dllimport) 11# define EAPI __declspec(dllimport)
12# endif 12# endif
13#else 13#else
14# ifdef GCC_HASCLASSVISIBILITY 14# ifdef __GNUC__
15# define EAPI __attribute__ ((visibility("default"))) 15# if __GNUC__ >= 4
16# define EAPI __attribute__ ((visibility("default")))
17# else
18# define EAPI
19# endif
16# else 20# else
17# define EAPI 21# define EAPI
18# endif 22# endif
diff --git a/legacy/embryo/src/lib/embryo_private.h b/legacy/embryo/src/lib/embryo_private.h
index e89c2c0442..26e6d0d7b8 100644
--- a/legacy/embryo/src/lib/embryo_private.h
+++ b/legacy/embryo/src/lib/embryo_private.h
@@ -16,6 +16,12 @@
16#include <alloca.h> 16#include <alloca.h>
17#endif 17#endif
18 18
19#ifdef __GNUC__
20# if __GNUC__ >= 4
21# pragma GCC visibility push(hidden)
22# endif
23#endif
24
19typedef enum _Embryo_Opcode Embryo_Opcode; 25typedef enum _Embryo_Opcode Embryo_Opcode;
20 26
21enum _Embryo_Opcode 27enum _Embryo_Opcode
diff --git a/legacy/evas/src/lib/Evas.h b/legacy/evas/src/lib/Evas.h
index cf314b823d..97042faf0b 100644
--- a/legacy/evas/src/lib/Evas.h
+++ b/legacy/evas/src/lib/Evas.h
@@ -11,8 +11,12 @@
11# define EAPI __declspec(dllimport) 11# define EAPI __declspec(dllimport)
12# endif 12# endif
13#else 13#else
14# ifdef GCC_HASCLASSVISIBILITY 14# ifdef __GNUC__
15# define EAPI __attribute__ ((visibility("default"))) 15# if __GNUC__ >= 4
16# define EAPI __attribute__ ((visibility("default")))
17# else
18# define EAPI
19# endif
16# else 20# else
17# define EAPI 21# define EAPI
18# endif 22# endif
diff --git a/legacy/evas/src/lib/include/evas_common.h b/legacy/evas/src/lib/include/evas_common.h
index ad7d666b43..d2eb36509b 100644
--- a/legacy/evas/src/lib/include/evas_common.h
+++ b/legacy/evas/src/lib/include/evas_common.h
@@ -1,6 +1,10 @@
1#ifndef EVAS_COMMON_H 1#ifndef EVAS_COMMON_H
2#define EVAS_COMMON_H 2#define EVAS_COMMON_H
3 3
4#include <stdio.h>
5#include <stdlib.h>
6#include <unistd.h>
7#include <string.h>
4#include "Evas.h" 8#include "Evas.h"
5#include "config.h" 9#include "config.h"
6 10
@@ -8,6 +12,12 @@
8 12
9#include "evas_options.h" 13#include "evas_options.h"
10 14
15#ifdef __GNUC__
16# if __GNUC__ >= 4
17# pragma GCC visibility push(hidden)
18# endif
19#endif
20
11/*****************************************************************************/ 21/*****************************************************************************/
12 22
13/* use exact rects for updates not tiles */ 23/* use exact rects for updates not tiles */
diff --git a/legacy/evas/src/lib/main.c b/legacy/evas/src/lib/main.c
index 711b41f39c..2212225cb1 100644
--- a/legacy/evas/src/lib/main.c
+++ b/legacy/evas/src/lib/main.c
@@ -1,3 +1,4 @@
1#include "Evas.h"
1#include "evas_common.h" 2#include "evas_common.h"
2#include "evas_private.h" 3#include "evas_private.h"
3 4