efl: remove EFL_EO_API_SUPPORT macro

Summary:
Since we're now going to be shipping some eo classes as stable,
there is no point in keeping the eo api behind a macro, and it
should be enabled by default. Another case is beta classes, but
those are behind the EFL_BETA_API_SUPPORT guard.

This also changes includes around the place where things are
clearly broken (such as an included header needing something
from another header but that other header being guarded, notably
efl_ui_widget.h needing focus manager but focus manager being
behind beta in Elementary.h)

Reviewers: zmike, cedric, bu5hm4n, stefan_schmidt, segfaultxavi

Reviewed By: cedric, segfaultxavi

Subscribers: segfaultxavi, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8322
This commit is contained in:
Daniel Kolesa 2019-03-18 12:13:41 +01:00 committed by Xavi Artigas
parent 3fa8bb7bad
commit 58b8a3d163
97 changed files with 17 additions and 247 deletions

View File

@ -28,7 +28,6 @@ CXXFLAGS="${CXXFLAGS} -Wno-shadow" # No shadow warnings
#### Apply configuring with legacy api's only, eo api's or both.
EFL_API_LEGACY_DEF="#define EFL_NOLEGACY_API_SUPPORT"
EFL_API_EO_DEF="#define EFL_EO_API_SUPPORT"
efl_api="both"
#### For the moment the Eo EFL API is not ready you need to explicitly optin.
@ -43,22 +42,15 @@ AC_ARG_WITH([api],
case "$efl_api" in
eo)
EFL_API_LEGACY_DEF="#define EFL_NOLEGACY_API_SUPPORT"
EFL_API_EO_DEF="#define EFL_EO_API_SUPPORT"
CFOPT_WARNING="xyes"
;;
legacy)
legacy|both)
EFL_API_LEGACY_DEF=""
EFL_API_EO_DEF=""
;;
both)
EFL_API_LEGACY_DEF=""
EFL_API_EO_DEF="#define EFL_EO_API_SUPPORT"
;;
*) AC_MSG_ERROR([Invalid api (${efl_api}): must be eo, legacy or both]) ;;
esac
AC_SUBST(EFL_API_LEGACY_DEF)
AC_SUBST(EFL_API_EO_DEF)
#### Additional options to configure

View File

@ -97,7 +97,6 @@ add_global_arguments(dev_cflags, language: 'cpp')
foreach lang : ['c', 'objc', 'cpp']
add_global_arguments('-DHAVE_CONFIG_H=1', language: lang)
add_global_arguments('-D_GNU_SOURCE=1', language: lang)
add_global_arguments('-DEFL_EO_API_SUPPORT=1', language: lang)
add_global_arguments('-DEFL_BETA_API_SUPPORT=1', language: lang)
add_global_arguments('-DNEED_RUN_IN_TREE=1', language: lang)
add_global_arguments('-DEFL_BUILD=1', language: lang)
@ -470,7 +469,6 @@ efl_config_h.set('EFL_VERSION_MICRO', version_micro)
efl_config_h.set('EFL_BUILD_ID', get_option('build-id'))
#FIXME placeholder
efl_config_h.set('EFL_API_EO_DEF', '#define EFL_API_EO_DEF "FIXME NOT IMPLEMENTED"')
efl_config_h.set('EFL_API_LEGACY_DEF', '#define EFL_API_LEGACY_DEF "FIXME NOT IMPLEMENTED"')
configure_file(

View File

@ -3,7 +3,6 @@
#endif
#define EFL_BETA_API_SUPPORT 1
#define EFL_EO_API_SUPPORT 1
#include <Eet.h>
#include <Ecore.h>
#include <Ecore_Con.h>

View File

@ -21,7 +21,6 @@
#endif
#define EFL_BETA_API_SUPPORT 1
#define EFL_EO_API_SUPPORT 1
#include <fcntl.h>
#include "eina_debug_private.h"

View File

@ -1,4 +1,3 @@
#define EFL_EO_API_SUPPORT
#define EFL_BETA_API_SUPPORT
#include <Efl.h>

View File

@ -1,4 +1,3 @@
#define EFL_EO_API_SUPPORT
#define EFL_BETA_API_SUPPORT
#include <Efl.h>

View File

@ -1,5 +1,4 @@
#define EFL_BETA_API_SUPPORT
#define EFL_EO_API_SUPPORT
#include <stdio.h>
#include <string.h>

View File

@ -1,5 +1,4 @@
#define EFL_BETA_API_SUPPORT 1
#define EFL_EO_API_SUPPORT 1
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif

View File

@ -1,5 +1,4 @@
#define EFL_BETA_API_SUPPORT
#define EFL_EO_API_SUPPORT
#include <stdio.h>
#include <string.h>

View File

@ -6,7 +6,6 @@
# include "elementary_config.h"
#else
# define EFL_BETA_API_SUPPORT 1
# define EFL_EO_API_SUPPORT 1
#endif
#include <Efl.h>

View File

@ -4,7 +4,6 @@
#include "elementary_config.h"
#else
#define EFL_BETA_API_SUPPORT 1
#define EFL_EO_API_SUPPORT 1
#endif
#include <Efl_Ui.h>

View File

@ -5,7 +5,6 @@
# include "elementary_config.h"
#else
# define EFL_BETA_API_SUPPORT 1
# define EFL_EO_API_SUPPORT 1
#endif
#include <Efl_Ui.h>

View File

@ -4,7 +4,6 @@
# include "elementary_config.h"
#else
# define EFL_BETA_API_SUPPORT 1
# define EFL_EO_API_SUPPORT 1
#endif
#include <Efl_Ui.h>

View File

@ -4,7 +4,6 @@
# include "config.h"
#else
# define EFL_BETA_API_SUPPORT 1
# define EFL_EO_API_SUPPORT 1
#endif
#include <Efl_Ui.h>

View File

@ -4,7 +4,6 @@
# include "config.h"
#else
# define EFL_BETA_API_SUPPORT 1
# define EFL_EO_API_SUPPORT 1
#endif
#define ELM_INTERFACE_ATSPI_SELECTION_PROTECTED

View File

@ -4,7 +4,6 @@
#include "elementary_config.h"
#else
#define EFL_BETA_API_SUPPORT 1
#define EFL_EO_API_SUPPORT 1
#endif
#include <Efl_Ui.h>

View File

@ -4,7 +4,6 @@
#include "elementary_config.h"
#else
#define EFL_BETA_API_SUPPORT 1
#define EFL_EO_API_SUPPORT 1
#endif
#include <Efl_Ui.h>

View File

@ -2,7 +2,6 @@
//gcc -g efl_ui_scroller_example.c -o efl_ui_scroller_example `pkg-config --cflags --libs elementary`
#define EFL_BETA_API_SUPPORT
#define EFL_EO_API_SUPPORT
#include <Efl_Ui.h>
#include <Elementary.h>

View File

@ -3,7 +3,6 @@
* gcc -o efl_ui_theme_example_01 efl_ui_theme_example_01.c `pkg-config --cflags --libs elementary`
*/
#define EFL_BETA_API_SUPPORT 1
#define EFL_EO_API_SUPPORT 1
#define EFL_UI_WIDGET_PROTECTED
#include <Efl_Ui.h>

View File

@ -3,7 +3,6 @@
* gcc -o efl_ui_theme_example_02 efl_ui_theme_example_02.c `pkg-config --cflags --libs elementary`
*/
#define EFL_BETA_API_SUPPORT 1
#define EFL_EO_API_SUPPORT 1
#define EFL_UI_WIDGET_PROTECTED
#include <Efl_Ui.h>

View File

@ -1,6 +1,3 @@
#ifndef EFL_EO_API_SUPPORT
# define EFL_EO_API_SUPPORT
#endif
#ifndef EFL_BETA_API_SUPPORT
# define EFL_BETA_API_SUPPORT
#endif

View File

@ -8,9 +8,6 @@
#ifndef EFL_BETA_API_SUPPORT
# define EFL_BETA_API_SUPPORT
#endif
#ifndef EFL_EO_API_SUPPORT
# define EFL_EO_API_SUPPORT
#endif
#include <Eo.h>
#include <Evas.h>

View File

@ -5,9 +5,6 @@
* Compile with:
* gcc -o evas3d_scene_on_button_example evas3d_scene_on_button_example.c -g `pkg-config --libs --cflags evas ecore eo elementary`
*/
#ifndef EFL_EO_API_SUPPORT
# define EFL_EO_API_SUPPORT
#endif
#ifndef EFL_BETA_API_SUPPORT
# define EFL_BETA_API_SUPPORT
#endif

View File

@ -4,7 +4,6 @@
# include "config.h"
#else
# define EFL_BETA_API_SUPPORT 1
# define EFL_EO_API_SUPPORT 1
#endif
#include <Elementary.h>

View File

@ -5,7 +5,6 @@
# include "config.h"
#else
# define EFL_BETA_API_SUPPORT 1
# define EFL_EO_API_SUPPORT 1
#endif
#include <Elementary.h>

View File

@ -4,7 +4,6 @@
# include "config.h"
#else
# define EFL_BETA_API_SUPPORT 1
# define EFL_EO_API_SUPPORT 1
#endif
#include <Efl_Ui.h>

View File

@ -1,8 +1,5 @@
//Compile with:
//gcc -o location_example_01 location_example_01.c -g `pkg-config --cflags --libs elementary elocation`
#ifndef EFL_EO_API_SUPPORT
# define EFL_EO_API_SUPPORT
#endif
#ifndef EFL_BETA_API_SUPPORT
# define EFL_BETA_API_SUPPORT
#endif

View File

@ -1,6 +1,3 @@
#ifndef EFL_EO_API_SUPPORT
# define EFL_EO_API_SUPPORT
#endif
#ifndef EFL_BETA_API_SUPPORT
# define EFL_BETA_API_SUPPORT
#endif

View File

@ -30,9 +30,6 @@
#include <stdio.h>
#include <stdlib.h>
#ifndef EFL_EO_API_SUPPORT
# define EFL_EO_API_SUPPORT
#endif
#ifndef EFL_BETA_API_SUPPORT
# define EFL_BETA_API_SUPPORT
#endif

View File

@ -1,6 +1,3 @@
#ifndef EFL_EO_API_SUPPORT
# define EFL_EO_API_SUPPORT
#endif
#ifndef EFL_BETA_API_SUPPORT
# define EFL_BETA_API_SUPPORT
#endif

View File

@ -14,9 +14,6 @@
* edje_cc sphere_hunter.edc
* gcc -o evas_3d_sphere_hunter evas_3d_sphere_hunter.c -g `pkg-config --libs --cflags evas ecore elementary eina eo` -lm
*/
#ifndef EFL_EO_API_SUPPORT
# define EFL_EO_API_SUPPORT
#endif
#ifndef EFL_BETA_API_SUPPORT
# define EFL_BETA_API_SUPPORT
#endif

View File

@ -1,9 +1,6 @@
//Compile with:
// gcc -o emotion_basic_example emotion_basic_example.c `pkg-config --libs --cflags emotion evas ecore ecore-evas eo`
#ifndef EFL_EO_API_SUPPORT
# define EFL_EO_API_SUPPORT
#endif
#ifndef EFL_BETA_API_SUPPORT
# define EFL_BETA_API_SUPPORT
#endif

View File

@ -1,8 +1,5 @@
//Compile with:
// gcc -o emotion_border_example emotion_border_example.c `pkg-config --libs --cflags emotion evas ecore ecore-evas eina eo`
#ifndef EFL_EO_API_SUPPORT
# define EFL_EO_API_SUPPORT
#endif
#ifndef EFL_BETA_API_SUPPORT
# define EFL_BETA_API_SUPPORT
#endif

View File

@ -1,8 +1,5 @@
//Compile with:
// gcc -o emotion_generic_example emotion_generic_example.c `pkg-config --libs --cflags emotion evas ecore ecore-evas eina eo`
#ifndef EFL_EO_API_SUPPORT
# define EFL_EO_API_SUPPORT
#endif
#ifndef EFL_BETA_API_SUPPORT
# define EFL_BETA_API_SUPPORT
#endif

View File

@ -1,9 +1,6 @@
//Compile with:
// gcc -o emotion_generic_subtitle_example emotion_generic_subtitle_example.c `pkg-config --libs --cflags emotion evas ecore ecore-evas eo`
#ifndef EFL_EO_API_SUPPORT
# define EFL_EO_API_SUPPORT
#endif
#ifndef EFL_BETA_API_SUPPORT
# define EFL_BETA_API_SUPPORT
#endif

View File

@ -1,9 +1,6 @@
//Compile with:
// gcc -o emotion_signals_example emotion_signals_example.c `pkg-config --libs --cflags emotion evas ecore ecore-evas eo`
#ifndef EFL_EO_API_SUPPORT
# define EFL_EO_API_SUPPORT
#endif
#ifndef EFL_BETA_API_SUPPORT
# define EFL_BETA_API_SUPPORT
#endif

View File

@ -14,7 +14,6 @@
#else
#define PACKAGE_EXAMPLES_DIR "."
#define EFL_BETA_API_SUPPORT
#define EFL_EO_API_SUPPORT
#endif
#include <Eo.h>

View File

@ -14,7 +14,6 @@
#include "config.h"
#else
#define EFL_BETA_API_SUPPORT
#define EFL_EO_API_SUPPORT
#endif
#include <Eo.h>

View File

@ -19,7 +19,6 @@
#else
#define PACKAGE_EXAMPLES_DIR "."
#define EFL_BETA_API_SUPPORT
#define EFL_EO_API_SUPPORT
#endif
#include <Eo.h>

View File

@ -16,7 +16,6 @@
#include "config.h"
#else
#define EFL_BETA_API_SUPPORT
#define EFL_EO_API_SUPPORT
#endif
#include <Ecore.h>

View File

@ -12,7 +12,6 @@
#include "config.h"
#else
#define EFL_BETA_API_SUPPORT
#define EFL_EO_API_SUPPORT
#endif
#include <Eo.h>

View File

@ -11,7 +11,6 @@
#else
#define PACKAGE_EXAMPLES_DIR "."
#define EFL_BETA_API_SUPPORT
#define EFL_EO_API_SUPPORT
#endif
#include <Eo.h>

View File

@ -18,7 +18,6 @@
#else
#define PACKAGE_EXAMPLES_DIR "."
#define EFL_BETA_API_SUPPORT
#define EFL_EO_API_SUPPORT
#endif
#include <Eo.h>

View File

@ -10,7 +10,6 @@
#include "config.h"
#else
#define EFL_BETA_API_SUPPORT
#define EFL_EO_API_SUPPORT
#endif
#include <math.h>

View File

@ -20,7 +20,6 @@
#else
#define PACKAGE_EXAMPLES_DIR "."
#define EFL_BETA_API_SUPPORT
#define EFL_EO_API_SUPPORT
#endif
#include <Ecore.h>

View File

@ -18,7 +18,6 @@
#else
#define PACKAGE_EXAMPLES_DIR "."
#define EFL_BETA_API_SUPPORT
#define EFL_EO_API_SUPPORT
#endif
#include <Eo.h>

View File

@ -11,7 +11,6 @@
#else
#define PACKAGE_EXAMPLES_DIR "."
#define EFL_BETA_API_SUPPORT
#define EFL_EO_API_SUPPORT
#endif
#include <Eo.h>

View File

@ -15,7 +15,6 @@
#else
#define PACKAGE_EXAMPLES_DIR "."
#define EFL_BETA_API_SUPPORT
#define EFL_EO_API_SUPPORT
#endif
#include <Eo.h>

View File

@ -19,7 +19,6 @@
#else
#define PACKAGE_EXAMPLES_DIR "."
#define EFL_BETA_API_SUPPORT
#define EFL_EO_API_SUPPORT
#endif
#include <Eo.h>

View File

@ -13,7 +13,6 @@
#else
#define PACKAGE_EXAMPLES_DIR "."
#define EFL_BETA_API_SUPPORT
#define EFL_EO_API_SUPPORT
#endif
#include <Eo.h>

View File

@ -15,7 +15,6 @@
#else
#define PACKAGE_EXAMPLES_DIR "."
#define EFL_BETA_API_SUPPORT
#define EFL_EO_API_SUPPORT
#endif
#include <math.h>

View File

@ -16,7 +16,6 @@
#else
#define PACKAGE_EXAMPLES_DIR "."
#define EFL_BETA_API_SUPPORT
#define EFL_EO_API_SUPPORT
#endif
#include <Eo.h>

View File

@ -12,7 +12,6 @@
#include "config.h"
#else
#define EFL_BETA_API_SUPPORT
#define EFL_EO_API_SUPPORT
#endif
#include <math.h>

View File

@ -31,7 +31,6 @@
#else
#define PACKAGE_EXAMPLES_DIR "."
#define EFL_BETA_API_SUPPORT
#define EFL_EO_API_SUPPORT
#endif
#include <Eo.h>

View File

@ -16,7 +16,6 @@
#else
#define PACKAGE_EXAMPLES_DIR "."
#define EFL_BETA_API_SUPPORT
#define EFL_EO_API_SUPPORT
#endif
#include <Eo.h>

View File

@ -16,10 +16,6 @@
# define EFL_BETA_API_SUPPORT
#endif
#ifndef EFL_EO_API_SUPPORT
# define EFL_EO_API_SUPPORT
#endif
#include <Ecore.h>
#include <Ecore_Evas.h>
#include <stdlib.h>

View File

@ -19,10 +19,6 @@
# define EFL_BETA_API_SUPPORT
#endif
#ifndef EFL_EO_API_SUPPORT
# define EFL_EO_API_SUPPORT
#endif
#include <Ecore.h>
#include <Ecore_Evas.h>

View File

@ -14,7 +14,6 @@
#include "config.h"
#else
#define PACKAGE_EXAMPLES_DIR "."
#define EFL_EO_API_SUPPORT
#define EFL_BETA_API_SUPPORT
#endif

View File

@ -22,10 +22,6 @@
#define EFL_BETA_API_SUPPORT
#endif
#ifndef EFL_EO_API_SUPPORT
#define EFL_EO_API_SUPPORT
#endif
#include <Eo.h>
#include <Efl.h>
#include <Evas.h>

View File

@ -43,10 +43,6 @@
#define EFL_BETA_API_SUPPORT
#endif
#ifndef EFL_EO_API_SUPPORT
#define EFL_EO_API_SUPPORT
#endif
#include <Eo.h>
#include <Efl.h>
#include <Evas.h>

View File

@ -5,7 +5,6 @@
#else
#define PACKAGE_EXAMPLES_DIR "."
#define EFL_BETA_API_SUPPORT
#define EFL_EO_API_SUPPORT
#endif
#include <stdio.h>

View File

@ -274,10 +274,7 @@
#include <Eina.h>
#include <Eo.h>
#ifdef EFL_BETA_API_SUPPORT
#include <Efl.h>
#endif
#ifdef EAPI
# undef EAPI
@ -333,9 +330,7 @@ extern "C" {
#ifndef EFL_NOLEGACY_API_SUPPORT
#include "Ecore_Legacy.h"
#endif
#ifdef EFL_EO_API_SUPPORT
#include "Ecore_Eo.h"
#endif
#ifdef __cplusplus
}

View File

@ -253,9 +253,7 @@ extern "C" {
#ifndef EFL_NOLEGACY_API_SUPPORT
#include "Edje_Legacy.h"
#endif
#ifdef EFL_EO_API_SUPPORT
#include "Edje_Eo.h"
#endif
#ifdef __cplusplus
}

View File

@ -3,16 +3,12 @@
/* Add -DEFL_API_OVERRIDE ot your CFLAGS to override the default
* installed api set and then fter that -DEFL_NOLEGACY_API_SUPPORT
* and/or -DEFL_EO_API_SUPPORT as desired
* as desired
*/
#ifndef EFL_API_OVERRIDE
#cmakedefine EFL_API_LEGACY_DEF
#cmakedefine EFL_BETA_API_SUPPORT
/* You can't disable Eo API anymore as EFL use it everywhere internally
and we don't want to expose it publicly just yet, so keep it hidden
and require an explicit request to get it. */
/* #define EFL_EO_API_SUPPORT */
#endif
#define EFL_VERSION_MAJOR @PROJECT_VERSION_MAJOR@

View File

@ -3,14 +3,10 @@
/* Add -DEFL_API_OVERRIDE ot your CFLAGS to override the default
* installed api set and then fter that -DEFL_NOLEGACY_API_SUPPORT
* and/or -DEFL_EO_API_SUPPORT as desired
* as desired
*/
#ifndef EFL_API_OVERRIDE
@EFL_API_LEGACY_DEF@
/* You can't disable Eo API anymore as EFL use it everywhere internally
and we don't want to expose it publicly just yet, so keep it hidden
and require an explicit request to get it. */
/* @EFL_API_EO_DEF@ */
#endif
#define EFL_VERSION_MAJOR @EFL_VERSION_MAJOR@

View File

@ -76,9 +76,7 @@ typedef Eina_Bool (*Eio_Filter_Direct_Cb)(void *data, Eio_File *handler, const E
#ifndef EFL_NOLEGACY_API_SUPPORT
#include "Eio_Legacy.h"
#endif
#ifdef EFL_EO_API_SUPPORT
#include "Eio_Eo.h"
#endif
/**
* @brief get access time from a Eina_Stat

View File

@ -4,10 +4,6 @@
#include <Efl_Config.h>
#include <Elementary_Options.h>
#ifndef EFL_EO_API_SUPPORT
# define EFL_EO_API_SUPPORT
#endif
/* FIXME: wtf? */
#ifndef EFL_UI_RADIO_EVENT_CHANGED
# define EFL_UI_RADIO_EVENT_CHANGED EFL_UI_NSTATE_EVENT_CHANGED

View File

@ -146,7 +146,6 @@ EAPI extern Elm_Version *elm_version;
#include <elm_config.h>
#include <elm_focus.h>
#if defined (EFL_EO_API_SUPPORT) && defined (EFL_BETA_API_SUPPORT)
#include <Efl.h>
/* FIXME: wtf? */
#ifndef EFL_UI_RADIO_EVENT_CHANGED
@ -160,7 +159,6 @@ typedef Eo Efl_Ui_Focus_Manager;
# include <efl_ui_focus_object.eo.h>
# include <efl_ui_focus_manager.eo.h>
EAPI void efl_ui_focus_relation_free(Efl_Ui_Focus_Relations *rel);
# include <efl_ui_focus_manager_window_root.eo.h>
# include <efl_ui_focus_manager_calc.eo.h>
# include <efl_ui_focus_manager_sub.eo.h>
@ -169,6 +167,8 @@ EAPI void efl_ui_focus_relation_free(Efl_Ui_Focus_Relations *rel);
# include <efl_ui_l10n.eo.h>
# include <efl_ui_focus_composition.eo.h>
# include <efl_ui_focus_layer.eo.h>
#ifdef EFL_BETA_API_SUPPORT
# include <elm_interface_scrollable.h>
# include <elm_interface_scrollable.eo.h>
#endif
@ -284,7 +284,6 @@ EAPI void efl_ui_focus_relation_free(Efl_Ui_Focus_Relations *rel);
#include <elm_web.h>
#include <elm_win.h>
#ifdef EFL_EO_API_SUPPORT
# include <efl_ui_selection_types.eot.h>
# include <efl_ui_theme.eo.h>
# include <efl_config_global.eo.h>
@ -375,7 +374,6 @@ typedef Eo Efl_Ui_Pager;
# include <efl_ui_tab_page.eo.h>
# include <efl_ui_tab_page_part_tab.eo.h>
# include <efl_ui_tab_pager.eo.h>
#endif
/* include deprecated calls last of all */
#include <elm_deprecated.h>

View File

@ -7,9 +7,6 @@
#ifndef EFL_BETA_API_SUPPORT
#define EFL_BETA_API_SUPPORT
#endif
#ifndef EFL_EO_API_SUPPORT
#define EFL_EO_API_SUPPORT
#endif
#ifndef ELM_INTERNAL_API_ARGESFSDFEFC
#define ELM_INTERNAL_API_ARGESFSDFEFC
#endif

View File

@ -2,13 +2,7 @@
#define EFL_ACCESS_H
#ifdef EFL_BETA_API_SUPPORT
#ifdef EFL_EO_API_SUPPORT
#include "efl_access_object.eo.h"
#endif
#ifndef EFL_NOLEGACY_API_SUPPORT
#include "efl_access_object.eo.legacy.h"
#endif
/*
* Sets a particilar state type for given state set.
@ -36,8 +30,6 @@ EAPI void efl_access_attributes_list_free(Eina_List *list);
EAPI void
efl_access_attribute_free(Efl_Access_Attribute *attr);
#ifdef EFL_EO_API_SUPPORT
/**
* Emits Accessible 'StateChanged' signal.
*/
@ -130,7 +122,5 @@ efl_access_attribute_free(Efl_Access_Attribute *attr);
#define efl_access_removed(obj) \
efl_access_object_event_emit(obj, EFL_ACCESS_OBJECT_EVENT_REMOVED, NULL);
#endif
#endif
#endif

View File

@ -2,13 +2,7 @@
#define ELM_INTERFACE_ATSPI_TEXT_H
#ifdef EFL_BETA_API_SUPPORT
#ifdef EFL_EO_API_SUPPORT
#include "efl_access_text.eo.h"
#endif
#ifndef EFL_NOLEGACY_API_SUPPORT
#include "efl_access_text.eo.legacy.h"
#endif
/**
* @brief Free Efl_Access_Text_Attribute structure

View File

@ -13,12 +13,7 @@ struct _Efl_Access_Action_Data
typedef struct _Efl_Access_Action_Data Efl_Access_Action_Data;
#ifdef EFL_EO_API_SUPPORT
#include "efl_access_widget_action.eo.h"
#endif
#ifndef EFL_NOLEGACY_API_SUPPORT
#include "efl_access_widget_action.eo.legacy.h"
#endif
#endif
#endif

View File

@ -2,13 +2,7 @@
#define EFL_ACCESS_WINDOW_H
#ifdef EFL_BETA_API_SUPPORT
#ifdef EFL_EO_API_SUPPORT
#include "efl_access_window.eo.h"
#endif
#ifndef EFL_NOLEGACY_API_SUPPORT
#include "efl_access_window.eo.legacy.h"
#endif
/**
* Emits 'Window:Activated' accessible signal.

View File

@ -48,9 +48,8 @@
* @{
*/
#ifdef EFL_EO_API_SUPPORT
#include "efl_ui_calendar.eo.h"
#endif
/**
* @}
*/

View File

@ -196,9 +196,8 @@
* @{
*/
#ifdef EFL_EO_API_SUPPORT
#include "efl_ui_clock.eo.h"
#endif
/**
* @}
*/

View File

@ -21,6 +21,4 @@
* @{
*/
#ifdef EFL_EO_API_SUPPORT
#include "efl_ui_nstate.eo.h"
#endif

View File

@ -54,9 +54,7 @@
* ELM_PLAYER_CLASS
*/
#ifdef EFL_EO_API_SUPPORT
#include "efl_ui_video_eo.h"
#endif
#ifndef EFL_NOLEGACY_API_SUPPORT
#include "efl_ui_video_legacy.h"
#endif

View File

@ -1,7 +1,6 @@
typedef Eina_Bool (*Elm_Fileselector_Filter_Func)(const char *path, /**< File path */
Eina_Bool dir, /**< A flag to show if path is a directory or not. True if the path is a directory. */
void *data /**< A user data that was given by elm_fileselector_custom_filter_append. */);
#ifdef EFL_EO_API_SUPPORT
EAPI extern Eina_Error ELM_FILESELECTOR_ERROR_UNKNOWN;
EAPI extern Eina_Error ELM_FILESELECTOR_ERROR_INVALID_MODEL;
#endif

View File

@ -1,3 +1 @@
#ifdef EFL_EO_API_SUPPORT
#include "elm_atspi_app_object.eo.h"
#endif

View File

@ -1,5 +1,3 @@
#ifdef EFL_BETA_API_SUPPORT
#ifdef EFL_EO_API_SUPPORT
#include "elm_atspi_bridge.eo.h"
#endif
#endif

View File

@ -59,9 +59,8 @@
* @{
*/
#ifdef EFL_EO_API_SUPPORT
#define EFL_UI_CHECK_EVENT_CHANGED EFL_UI_NSTATE_EVENT_CHANGED
#endif
#ifndef EFL_NOLEGACY_API_SUPPORT
#include "elm_check_legacy.h"
#endif

View File

@ -2356,7 +2356,8 @@ EAPI void elm_config_drag_anim_duration_set(double set);
/* new efl.config interface helpers in C */
#ifdef EFL_EO_API_SUPPORT
/* FIXME these depend on stuff from Efl.h but this is included before that */
#ifdef EFL_BETA_API_SUPPORT
static inline Eina_Bool
efl_config_bool_set(Efl_Config *obj, const char * name, Eina_Bool val)

View File

@ -77,7 +77,7 @@ elm_validator_regexp_free(Elm_Validator_Regexp *validator) EINA_ARG_NONNULL(1);
EAPI Elm_Regexp_Status
elm_validator_regexp_status_get(Elm_Validator_Regexp *validator) EINA_ARG_NONNULL(1);
#if defined(EFL_BETA_API_SUPPORT) && defined(EFL_EO_API_SUPPORT)
#if defined(EFL_BETA_API_SUPPORT)
/**
* @brief The regex validator. Used as callback to validate event.
*

View File

@ -58,12 +58,7 @@ typedef void (*Elm_Interface_Scrollable_Resize_Cb)(Evas_Object *obj, Evas_C
typedef struct _Elm_Scrollable_Smart_Interface_Data
Elm_Scrollable_Smart_Interface_Data;
#ifdef EFL_EO_API_SUPPORT
#include "elm_interface_scrollable.eo.h"
#endif
#ifndef EFL_NOLEGACY_API_SUPPORT
#include "elm_interface_scrollable.eo.legacy.h"
#endif
struct _Elm_Scrollable_Smart_Interface_Data
{
@ -247,7 +242,7 @@ struct _Elm_Scrollable_Smart_Interface_Data
return __VA_ARGS__; \
}
#if defined(EFL_EO_API_SUPPORT) && defined(EFL_BETA_API_SUPPORT)
#ifdef EFL_BETA_API_SUPPORT
EAPI void elm_pan_gravity_set(Elm_Pan *, double x, double) EINA_DEPRECATED;
EAPI void elm_pan_gravity_get(const Elm_Pan *, double *, double *) EINA_DEPRECATED;
#endif

View File

@ -3,13 +3,7 @@
#include "efl_access_widget_action.h"
#include "efl_access_window.h"
// FIXME FIXME FIXME -- Still required because of photocam
#ifdef EFL_EO_API_SUPPORT
# include "elm_interface_scrollable.h"
#endif
#ifdef EFL_BETA_API_SUPPORT
#ifdef EFL_EO_API_SUPPORT
#include "efl_access_action.eo.h"
#include "efl_access_component.eo.h"
#include "efl_access_editable_text.eo.h"
@ -17,12 +11,3 @@
#include "efl_access_value.eo.h"
#include "efl_ui_legacy.eo.h"
#endif
#ifndef EFL_NOLEGACY_API_SUPPORT
#include "efl_access_action.eo.legacy.h"
#include "efl_access_component.eo.legacy.h"
#include "efl_access_editable_text.eo.legacy.h"
#include "efl_access_selection.eo.legacy.h"
#include "efl_access_value.eo.legacy.h"
#include "efl_ui_legacy.eo.legacy.h"
#endif
#endif

View File

@ -1,5 +1,5 @@
#ifdef EFL_EO_API_SUPPORT
#ifdef EFL_BETA_API_SUPPORT
#ifndef ELM_VIEW_FORM_H
#define ELM_VIEW_FORM_H

View File

@ -1,5 +1,5 @@
#ifdef EFL_EO_API_SUPPORT
#ifdef EFL_BETA_API_SUPPORT
#ifndef ELM_VIEW_LIST_H
#define ELM_VIEW_LIST_H

View File

@ -11,7 +11,7 @@
EAPI void elm_win_autodel_set(Evas_Object *obj, Eina_Bool autodel);
EAPI Eina_Bool elm_win_autodel_get(const Evas_Object *obj);
#if defined (EFL_EO_API_SUPPORT) && defined (EFL_BETA_API_SUPPORT)
#ifdef EFL_BETA_API_SUPPORT
/**
* @brief Set the window's autodel state.
*

View File

@ -127,9 +127,7 @@ extern "C" {
#ifndef EFL_NOLEGACY_API_SUPPORT
#include "Emotion_Legacy.h"
#endif
#ifdef EFL_EO_API_SUPPORT
#include "Emotion_Eo.h"
#endif
/**
* @file Emotion.h

View File

@ -169,10 +169,8 @@
#include <Eina.h>
#include <Eo.h>
#ifdef EFL_BETA_API_SUPPORT
/* This include has been added to support Eo in Evas */
#include <Efl.h>
#endif
#include <Evas_Loader.h>

View File

@ -8,9 +8,6 @@
#ifndef EFL_BETA_API_SUPPORT
#define EFL_BETA_API_SUPPORT
#endif
#ifndef EFL_EO_API_SUPPORT
#define EFL_EO_API_SUPPORT
#endif
#include <Efl.hh>

View File

@ -89,7 +89,7 @@ EAPI extern Evas_Version * evas_version;
* @since 1.1
*/
// Support not having eo available
#if defined (EFL_BETA_API_SUPPORT) && defined(EFL_EO_API_SUPPORT)
#ifdef EFL_BETA_API_SUPPORT
typedef Efl_Callback_Priority Evas_Callback_Priority;
#else
typedef short Evas_Callback_Priority;
@ -3490,21 +3490,9 @@ typedef unsigned int Efl_Input_Device_Type;
#endif
#ifndef _EFL_H
#define _EFL_H
typedef Efl_Gfx_Path_Command_Type Efl_Gfx_Path_Command;
typedef struct tm Efl_Time;
#endif
#ifndef _EFL_TEXT_CURSOR_EO_H_
#define _EFL_TEXT_CURSOR_EO_H_
#ifndef _EFL_TEXT_CURSOR_EO_CLASS_TYPE
#define _EFL_TEXT_CURSOR_EO_CLASS_TYPE
#endif
typedef Eo Efl_Text_Cursor;
typedef Eo Efl_Text_Cursor_Cursor;
#endif
#ifndef _EFL_GFX_ENTITY_EO_H_
#define _EFL_GFX_ENTITY_EO_H_

View File

@ -2,8 +2,6 @@
# error You shall not include this header directly
#endif
#ifdef EFL_EO_API_SUPPORT
#ifndef _EFL_CANVAS_VG_NODE_EO_CLASS_TYPE
#define _EFL_CANVAS_VG_NODE_EO_CLASS_TYPE
@ -200,11 +198,6 @@ struct _Efl_Canvas_Object_Animation_Event
#include "canvas/efl_canvas_animation_group_parallel.eo.h"
#include "canvas/efl_canvas_animation_group_sequential.eo.h"
#include "canvas/efl_canvas_animation_player.eo.h"
#endif /* EFL_EO_API_SUPPORT */
#if defined(EFL_BETA_API_SUPPORT) && defined(EFL_EO_API_SUPPORT)
#include "canvas/efl_canvas_event_grabber.eo.h"
/**
@ -418,17 +411,13 @@ typedef void (Evas_Canvas3D_Surface_Func)(Evas_Real *out_x,
#include "canvas/evas_canvas3d_scene.eo.h"
#include "canvas/efl_canvas_scene3d.eo.h"
#endif /* EFL_BETA_API_SUPPORT */
#ifdef EFL_EO_API_SUPPORT
#include "canvas/efl_canvas_image_internal.eo.h"
#include "canvas/efl_canvas_image.eo.h"
#include "canvas/efl_canvas_snapshot.eo.h"
#include "canvas/efl_canvas_proxy.eo.h"
#include "canvas/efl_gfx_mapping.eo.h"
#endif /* EFL_EO_API_SUPPORT */
#if defined(EFL_BETA_API_SUPPORT) && defined(EFL_EO_API_SUPPORT)
/**
* @ingroup Evas_Object_VG
*
@ -445,9 +434,7 @@ typedef void (Evas_Canvas3D_Surface_Func)(Evas_Real *out_x,
#include "canvas/efl_canvas_vg_gradient.eo.h"
#include "canvas/efl_canvas_vg_gradient_linear.eo.h"
#include "canvas/efl_canvas_vg_gradient_radial.eo.h"
#endif /* EFL_BETA_API_SUPPORT */
#ifdef EFL_EO_API_SUPPORT
#include "canvas/efl_input_state.eo.h"
#include "canvas/efl_input_event.eo.h"
#include "canvas/efl_input_pointer.eo.h"
@ -455,9 +442,7 @@ typedef void (Evas_Canvas3D_Surface_Func)(Evas_Real *out_x,
#include "canvas/efl_input_hold.eo.h"
#include "canvas/efl_input_interface.eo.h"
#include "canvas/efl_input_focus.eo.h"
#endif /* EFL_EO_API_SUPPORT */
#ifdef EFL_EO_API_SUPPORT
# include "gesture/efl_canvas_gesture_types.eot.h"
# include "gesture/efl_canvas_gesture_touch.eo.h"
# include "gesture/efl_canvas_gesture.eo.h"
@ -465,4 +450,3 @@ typedef void (Evas_Canvas3D_Surface_Func)(Evas_Real *out_x,
# include "gesture/efl_canvas_gesture_long_tap.eo.h"
# include "gesture/efl_canvas_gesture_recognizer.eo.h"
# include "gesture/efl_canvas_gesture_manager.eo.h"
#endif /* EFL_EO_API_SUPPORT */

View File

@ -1,7 +1,6 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#else
#define EFL_EO_API_SUPPORT
#define EFL_BETA_API_SUPPORT
#endif

View File

@ -1,5 +1,4 @@
#undef EFL_BETA_API_SUPPORT
#undef EFL_EO_API_SUPPORT
#define EFL_NOLEGACY_API_SUPPORT
#include <Efl_Ui.h>

View File

@ -1,3 +1,2 @@
#undef EFL_BETA_API_SUPPORT
#undef EFL_EO_API_SUPPORT
#include <Elementary.h>

View File

@ -1,7 +1,6 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#else
#define EFL_EO_API_SUPPORT
#define EFL_BETA_API_SUPPORT
#endif