summaryrefslogtreecommitdiff
path: root/src/examples
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/examples
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/examples/ecore/ecore_promise2_example.c1
-rw-r--r--src/examples/ecore/efl_io_buffered_stream_example.c1
-rw-r--r--src/examples/ecore/efl_io_copier_example.c1
-rw-r--r--src/examples/ecore/efl_io_copier_simple_example.c1
-rw-r--r--src/examples/ecore/efl_io_queue_example.c1
-rw-r--r--src/examples/ecore/efl_net_control_example.c1
-rw-r--r--src/examples/ecore/efl_net_dialer_http_example.c1
-rw-r--r--src/examples/ecore/efl_net_dialer_simple_example.c1
-rw-r--r--src/examples/ecore/efl_net_dialer_udp_example.c1
-rw-r--r--src/examples/ecore/efl_net_dialer_unix_example.c1
-rw-r--r--src/examples/ecore/efl_net_dialer_websocket_autobahntestee.c1
-rw-r--r--src/examples/ecore/efl_net_dialer_websocket_example.c1
-rw-r--r--src/examples/ecore/efl_net_server_example.c1
-rw-r--r--src/examples/ecore/efl_net_server_simple_example.c1
-rw-r--r--src/examples/ecore/efl_net_session_example.c1
-rw-r--r--src/examples/ecore/efl_net_socket_ssl_dialer_example.c1
-rw-r--r--src/examples/ecore/efl_net_socket_ssl_server_example.c1
17 files changed, 17 insertions, 0 deletions
diff --git a/src/examples/ecore/ecore_promise2_example.c b/src/examples/ecore/ecore_promise2_example.c
index bdf153d7ba..a88b1ff13e 100644
--- a/src/examples/ecore/ecore_promise2_example.c
+++ b/src/examples/ecore/ecore_promise2_example.c
@@ -1,3 +1,4 @@
1#define EFL_BETA_API_SUPPORT 1
1#include <Efl_Core.h> 2#include <Efl_Core.h>
2#include <stdlib.h> 3#include <stdlib.h>
3#include <errno.h> 4#include <errno.h>
diff --git a/src/examples/ecore/efl_io_buffered_stream_example.c b/src/examples/ecore/efl_io_buffered_stream_example.c
index 3338bae396..c7fe102890 100644
--- a/src/examples/ecore/efl_io_buffered_stream_example.c
+++ b/src/examples/ecore/efl_io_buffered_stream_example.c
@@ -1,3 +1,4 @@
1#define EFL_BETA_API_SUPPORT
1#include <Efl_Net.h> 2#include <Efl_Net.h>
2#include <Ecore_Getopt.h> 3#include <Ecore_Getopt.h>
3 4
diff --git a/src/examples/ecore/efl_io_copier_example.c b/src/examples/ecore/efl_io_copier_example.c
index b7e526bd3c..25a81140bd 100644
--- a/src/examples/ecore/efl_io_copier_example.c
+++ b/src/examples/ecore/efl_io_copier_example.c
@@ -1,3 +1,4 @@
1#define EFL_BETA_API_SUPPORT
1#include <Efl_Net.h> 2#include <Efl_Net.h>
2#include <Ecore_Getopt.h> 3#include <Ecore_Getopt.h>
3#include <fcntl.h> 4#include <fcntl.h>
diff --git a/src/examples/ecore/efl_io_copier_simple_example.c b/src/examples/ecore/efl_io_copier_simple_example.c
index ee945cce7b..0a1fd65297 100644
--- a/src/examples/ecore/efl_io_copier_simple_example.c
+++ b/src/examples/ecore/efl_io_copier_simple_example.c
@@ -1,3 +1,4 @@
1#define EFL_BETA_API_SUPPORT
1#include <Efl_Core.h> 2#include <Efl_Core.h>
2 3
3static void 4static void
diff --git a/src/examples/ecore/efl_io_queue_example.c b/src/examples/ecore/efl_io_queue_example.c
index 9367716729..62e6035450 100644
--- a/src/examples/ecore/efl_io_queue_example.c
+++ b/src/examples/ecore/efl_io_queue_example.c
@@ -1,3 +1,4 @@
1#define EFL_BETA_API_SUPPORT
1#include <Efl_Net.h> 2#include <Efl_Net.h>
2#include <Ecore_Getopt.h> 3#include <Ecore_Getopt.h>
3 4
diff --git a/src/examples/ecore/efl_net_control_example.c b/src/examples/ecore/efl_net_control_example.c
index 3053c87cad..408ea8e6c9 100644
--- a/src/examples/ecore/efl_net_control_example.c
+++ b/src/examples/ecore/efl_net_control_example.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_SYS_SOCKET_H 1#ifdef HAVE_SYS_SOCKET_H
2 #include <sys/socket.h> 2 #include <sys/socket.h>
3#endif 3#endif
4#define EFL_BETA_API_SUPPORT
4#include <Efl_Net.h> 5#include <Efl_Net.h>
5#include <Ecore_Getopt.h> 6#include <Ecore_Getopt.h>
6#include <ctype.h> 7#include <ctype.h>
diff --git a/src/examples/ecore/efl_net_dialer_http_example.c b/src/examples/ecore/efl_net_dialer_http_example.c
index f1a97eefe9..70861dc438 100644
--- a/src/examples/ecore/efl_net_dialer_http_example.c
+++ b/src/examples/ecore/efl_net_dialer_http_example.c
@@ -1,3 +1,4 @@
1#define EFL_BETA_API_SUPPORT
1#include <Efl_Net.h> 2#include <Efl_Net.h>
2#include <Ecore_Getopt.h> 3#include <Ecore_Getopt.h>
3#include <fcntl.h> 4#include <fcntl.h>
diff --git a/src/examples/ecore/efl_net_dialer_simple_example.c b/src/examples/ecore/efl_net_dialer_simple_example.c
index 219da892f1..1285dae2f1 100644
--- a/src/examples/ecore/efl_net_dialer_simple_example.c
+++ b/src/examples/ecore/efl_net_dialer_simple_example.c
@@ -1,3 +1,4 @@
1#define EFL_BETA_API_SUPPORT
1#include <Efl_Net.h> 2#include <Efl_Net.h>
2#include <Ecore_Getopt.h> 3#include <Ecore_Getopt.h>
3#include <fcntl.h> 4#include <fcntl.h>
diff --git a/src/examples/ecore/efl_net_dialer_udp_example.c b/src/examples/ecore/efl_net_dialer_udp_example.c
index 3b13a60ca7..bb01b58f8a 100644
--- a/src/examples/ecore/efl_net_dialer_udp_example.c
+++ b/src/examples/ecore/efl_net_dialer_udp_example.c
@@ -1,3 +1,4 @@
1#define EFL_BETA_API_SUPPORT
1#include <Efl_Net.h> 2#include <Efl_Net.h>
2#include <Ecore_Getopt.h> 3#include <Ecore_Getopt.h>
3#include <fcntl.h> 4#include <fcntl.h>
diff --git a/src/examples/ecore/efl_net_dialer_unix_example.c b/src/examples/ecore/efl_net_dialer_unix_example.c
index b610dd42a6..f0298aed4a 100644
--- a/src/examples/ecore/efl_net_dialer_unix_example.c
+++ b/src/examples/ecore/efl_net_dialer_unix_example.c
@@ -1,3 +1,4 @@
1#define EFL_BETA_API_SUPPORT
1#include <Efl_Net.h> 2#include <Efl_Net.h>
2#include <Ecore_Getopt.h> 3#include <Ecore_Getopt.h>
3#include <fcntl.h> 4#include <fcntl.h>
diff --git a/src/examples/ecore/efl_net_dialer_websocket_autobahntestee.c b/src/examples/ecore/efl_net_dialer_websocket_autobahntestee.c
index fd0c09818c..037a0aca52 100644
--- a/src/examples/ecore/efl_net_dialer_websocket_autobahntestee.c
+++ b/src/examples/ecore/efl_net_dialer_websocket_autobahntestee.c
@@ -1,3 +1,4 @@
1#define EFL_BETA_API_SUPPORT
1#include <Efl_Net.h> 2#include <Efl_Net.h>
2#include <Ecore_Getopt.h> 3#include <Ecore_Getopt.h>
3#include <fcntl.h> 4#include <fcntl.h>
diff --git a/src/examples/ecore/efl_net_dialer_websocket_example.c b/src/examples/ecore/efl_net_dialer_websocket_example.c
index e0b72e4991..e46a8c78a9 100644
--- a/src/examples/ecore/efl_net_dialer_websocket_example.c
+++ b/src/examples/ecore/efl_net_dialer_websocket_example.c
@@ -1,3 +1,4 @@
1#define EFL_BETA_API_SUPPORT
1#include <Efl_Net.h> 2#include <Efl_Net.h>
2#include <Ecore_Getopt.h> 3#include <Ecore_Getopt.h>
3#include <fcntl.h> 4#include <fcntl.h>
diff --git a/src/examples/ecore/efl_net_server_example.c b/src/examples/ecore/efl_net_server_example.c
index d98e66bb35..b599336960 100644
--- a/src/examples/ecore/efl_net_server_example.c
+++ b/src/examples/ecore/efl_net_server_example.c
@@ -1,3 +1,4 @@
1#define EFL_BETA_API_SUPPORT
1#include <Efl_Net.h> 2#include <Efl_Net.h>
2#include <Ecore_Getopt.h> 3#include <Ecore_Getopt.h>
3#include <fcntl.h> 4#include <fcntl.h>
diff --git a/src/examples/ecore/efl_net_server_simple_example.c b/src/examples/ecore/efl_net_server_simple_example.c
index a68e9b9fb9..6477ad2a3d 100644
--- a/src/examples/ecore/efl_net_server_simple_example.c
+++ b/src/examples/ecore/efl_net_server_simple_example.c
@@ -1,3 +1,4 @@
1#define EFL_BETA_API_SUPPORT
1#include <Efl_Net.h> 2#include <Efl_Net.h>
2#include <Ecore_Getopt.h> 3#include <Ecore_Getopt.h>
3#include <fcntl.h> 4#include <fcntl.h>
diff --git a/src/examples/ecore/efl_net_session_example.c b/src/examples/ecore/efl_net_session_example.c
index 683f3414e0..fbefb21791 100644
--- a/src/examples/ecore/efl_net_session_example.c
+++ b/src/examples/ecore/efl_net_session_example.c
@@ -1,3 +1,4 @@
1#define EFL_BETA_API_SUPPORT
1#include <Efl_Net.h> 2#include <Efl_Net.h>
2#include <Ecore_Getopt.h> 3#include <Ecore_Getopt.h>
3 4
diff --git a/src/examples/ecore/efl_net_socket_ssl_dialer_example.c b/src/examples/ecore/efl_net_socket_ssl_dialer_example.c
index 45dc189d09..0bc77c3477 100644
--- a/src/examples/ecore/efl_net_socket_ssl_dialer_example.c
+++ b/src/examples/ecore/efl_net_socket_ssl_dialer_example.c
@@ -1,3 +1,4 @@
1#define EFL_BETA_API_SUPPORT
1#include <Efl_Net.h> 2#include <Efl_Net.h>
2#include <Ecore_Getopt.h> 3#include <Ecore_Getopt.h>
3#include <fcntl.h> 4#include <fcntl.h>
diff --git a/src/examples/ecore/efl_net_socket_ssl_server_example.c b/src/examples/ecore/efl_net_socket_ssl_server_example.c
index 2babc8b6a0..33b67d2b21 100644
--- a/src/examples/ecore/efl_net_socket_ssl_server_example.c
+++ b/src/examples/ecore/efl_net_socket_ssl_server_example.c
@@ -1,3 +1,4 @@
1#define EFL_BETA_API_SUPPORT
1#include <Efl_Net.h> 2#include <Efl_Net.h>
2#include <Ecore_Getopt.h> 3#include <Ecore_Getopt.h>
3#include <fcntl.h> 4#include <fcntl.h>