summaryrefslogtreecommitdiff
path: root/src/lib/efreet
diff options
context:
space:
mode:
authorAlastair Poole <netstar@gmail.com>2018-06-22 07:16:50 +0100
committerAlastair Poole <netstar@gmail.com>2018-06-22 07:16:50 +0100
commitc3d2ba07bcb8c170e8b56f35b05e9930b5efc775 (patch)
tree0923aabfe50c8349cd497f6801663e40a240eafa /src/lib/efreet
parent9639fab82bb910dc8e97ed41aa6385631c4c084e (diff)
efreet: silent deprecated API build warnings.
Silent warnings on EFL build. Warn on API "mis-use".
Diffstat (limited to 'src/lib/efreet')
-rw-r--r--src/lib/efreet/Efreet.h6
-rw-r--r--src/lib/efreet/efreet_menu.c4
-rw-r--r--src/lib/efreet/efreet_menu.h4
3 files changed, 10 insertions, 4 deletions
diff --git a/src/lib/efreet/Efreet.h b/src/lib/efreet/Efreet.h
index 77a994f775..22d2291f44 100644
--- a/src/lib/efreet/Efreet.h
+++ b/src/lib/efreet/Efreet.h
@@ -78,6 +78,12 @@
78# undef EAPI 78# undef EAPI
79#endif 79#endif
80 80
81#ifdef EFL_BUILD
82# define EFREET_DEPRECATED_API
83#else
84# define EFREET_DEPRECATED_API EINA_DEPRECATED
85#endif
86
81#ifdef _WIN32 87#ifdef _WIN32
82# ifdef EFL_BUILD 88# ifdef EFL_BUILD
83# ifdef DLL_EXPORT 89# ifdef DLL_EXPORT
diff --git a/src/lib/efreet/efreet_menu.c b/src/lib/efreet/efreet_menu.c
index 154c7acb9f..f48f13c07e 100644
--- a/src/lib/efreet/efreet_menu.c
+++ b/src/lib/efreet/efreet_menu.c
@@ -529,7 +529,7 @@ efreet_menu_file_set(const char *file)
529} 529}
530 530
531/* deprecated */ 531/* deprecated */
532EINA_DEPRECATED EAPI void 532EFREET_DEPRECATED_API EAPI void
533efreet_menu_async_get(Efreet_Menu_Cb func, const void *data) 533efreet_menu_async_get(Efreet_Menu_Cb func, const void *data)
534{ 534{
535 char menu[PATH_MAX]; 535 char menu[PATH_MAX];
@@ -605,7 +605,7 @@ efreet_menu_get(void)
605} 605}
606 606
607/* deprecated */ 607/* deprecated */
608EINA_DEPRECATED EAPI void 608EFREET_DEPRECATED_API EAPI void
609efreet_menu_async_parse(const char *path, Efreet_Menu_Cb func, const void *data) 609efreet_menu_async_parse(const char *path, Efreet_Menu_Cb func, const void *data)
610{ 610{
611 Efreet_Menu_Async *async; 611 Efreet_Menu_Async *async;
diff --git a/src/lib/efreet/efreet_menu.h b/src/lib/efreet/efreet_menu.h
index dd05264dca..16d8de210d 100644
--- a/src/lib/efreet/efreet_menu.h
+++ b/src/lib/efreet/efreet_menu.h
@@ -84,7 +84,7 @@ EAPI void efreet_menu_file_set(const char *file);
84 * 84 *
85 * @deprecated 85 * @deprecated
86 */ 86 */
87EINA_DEPRECATED EAPI void efreet_menu_async_get(Efreet_Menu_Cb func, const void *data); 87EFREET_DEPRECATED_API EAPI void efreet_menu_async_get(Efreet_Menu_Cb func, const void *data);
88 88
89/** 89/**
90 * @return Returns the Efreet_Menu representation of the default menu or 90 * @return Returns the Efreet_Menu representation of the default menu or
@@ -102,7 +102,7 @@ EAPI Efreet_Menu *efreet_menu_get(void);
102 * 102 *
103 * @deprecated 103 * @deprecated
104 */ 104 */
105EINA_DEPRECATED EAPI void efreet_menu_async_parse(const char *path, Efreet_Menu_Cb func, const void *data); 105EFREET_DEPRECATED_API EAPI void efreet_menu_async_parse(const char *path, Efreet_Menu_Cb func, const void *data);
106 106
107/** 107/**
108 * @param path The path of the menu to load 108 * @param path The path of the menu to load