summaryrefslogtreecommitdiff
path: root/src/lib/edje
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-02-13 11:58:33 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2019-02-13 18:09:17 +0100
commit6b7346b7b2b0db05e76cc217966d3304e4cbc41a (patch)
tree20033403a3659e0db98c9e576e10470a4dd54170 /src/lib/edje
parent56f06d21c19cddb056f6ced6822b275c08ebfc3a (diff)
Remove individual class BETA guards
Summary: Eolian adds a per-class BETA guard (like EFL_UI_WIN_BETA) to any method tagged as @beta. This means that any app (and the EFL code) wanting to use BETA features has to enable them class by class, which is cumbersome. This commit replaces the individual guards with the global EFL_BETA_API_SUPPORT guard, so apps only need to define one symbol to access BETA features. Any usage of the per-class guards has been removed from the EFL code and examples. When building EFL the global guard is defined by configure, so all EFL methods already have access to BETA API. Efl_Core.h and Efl_Ui.h no longer define EFL_BETA_API_SUPPORT. Apps wanting to use BETA API have to define this symbol before including any EFL header (It has been added to the examples requiring it). Test Plan: make && make check && make examples still work, but there's a lot less #defines in the code Reviewers: zmike, bu5hm4n, q66 Reviewed By: q66 Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T6788 Differential Revision: https://phab.enlightenment.org/D7924
Diffstat (limited to '')
-rw-r--r--src/lib/edje/edje_calc.c1
-rw-r--r--src/lib/edje/edje_edit.c1
-rw-r--r--src/lib/edje/edje_private.h1
-rw-r--r--src/lib/edje/edje_smart.c1
4 files changed, 0 insertions, 4 deletions
diff --git a/src/lib/edje/edje_calc.c b/src/lib/edje/edje_calc.c
index cdfcc81732..f09265f37b 100644
--- a/src/lib/edje/edje_calc.c
+++ b/src/lib/edje/edje_calc.c
@@ -1,4 +1,3 @@
1#define EFL_GFX_FILTER_BETA
2#define EFL_GFX_SIZE_HINT_PROTECTED 1#define EFL_GFX_SIZE_HINT_PROTECTED
3 2
4#include "edje_private.h" 3#include "edje_private.h"
diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index 859fcc2851..010b1aff6b 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -9,7 +9,6 @@
9 9
10#define _EDJE_EDIT_EO_CLASS_TYPE 10#define _EDJE_EDIT_EO_CLASS_TYPE
11#define EFL_CANVAS_GROUP_PROTECTED 11#define EFL_CANVAS_GROUP_PROTECTED
12#define EFL_CANVAS_GROUP_BETA
13 12
14#include "edje_private.h" 13#include "edje_private.h"
15 14
diff --git a/src/lib/edje/edje_private.h b/src/lib/edje/edje_private.h
index 98311b8525..25a00022b4 100644
--- a/src/lib/edje/edje_private.h
+++ b/src/lib/edje/edje_private.h
@@ -40,7 +40,6 @@
40#endif 40#endif
41 41
42// auto_unref 42// auto_unref
43#define EFL_CANVAS_LAYOUT_BETA
44#define EFL_CANVAS_OBJECT_PROTECTED 43#define EFL_CANVAS_OBJECT_PROTECTED
45#define EFL_LAYOUT_CALC_PROTECTED 44#define EFL_LAYOUT_CALC_PROTECTED
46 45
diff --git a/src/lib/edje/edje_smart.c b/src/lib/edje/edje_smart.c
index 5a715b35ed..b7ca9c02d2 100644
--- a/src/lib/edje/edje_smart.c
+++ b/src/lib/edje/edje_smart.c
@@ -1,5 +1,4 @@
1#define EFL_CANVAS_GROUP_PROTECTED 1#define EFL_CANVAS_GROUP_PROTECTED
2#define EFL_CANVAS_GROUP_BETA
3#define EFL_PART_PROTECTED 2#define EFL_PART_PROTECTED
4 3
5#include "edje_private.h" 4#include "edje_private.h"