build: fix elm header usage

.c files in src/lib/elementary should only include elm_priv.h to ensure
that all the include ordering is correct and that all necessary headers
are pulled in

.c files outside of src/lib/elementary should include either/both
Efl_Ui.h, Elementary.h as needed

Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Differential Revision: https://phab.enlightenment.org/D9978
This commit is contained in:
Mike Blumenkrantz 2019-09-16 15:10:34 -04:00 committed by Marcel Hollerbach
parent 038b546414
commit ca86b98e40
15 changed files with 5 additions and 27 deletions

View File

@ -2,6 +2,7 @@
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#endif
#include <Efl_Ui.h>
#include <Elementary.h>
void

View File

@ -4,8 +4,6 @@
#define EFL_ACCESS_ACTION_PROTECTED
#include <Elementary.h>
#include "elm_widget.h"
#include "elm_priv.h"
EOLIAN const char *

View File

@ -5,8 +5,6 @@
#define EFL_ACCESS_COMPONENT_PROTECTED
#define EFL_ACCESS_OBJECT_PROTECTED
#include <Elementary.h>
#include "elm_priv.h"

View File

@ -4,8 +4,6 @@
#define EFL_ACCESS_EDITABLE_TEXT_PROTECTED
#include <Elementary.h>
#include "elm_widget.h"
#include "elm_priv.h"
#include "efl_access_editable_text.eo.c"

View File

@ -4,8 +4,6 @@
#define EFL_ACCESS_OBJECT_PROTECTED
#include <Elementary.h>
#include "elm_widget.h"
#include "elm_priv.h"
const char* Access_Name[] = {

View File

@ -4,8 +4,6 @@
#define ELM_INTERFACE_ATSPI_VALUE_PROTECTED
#include <Elementary.h>
#include "elm_widget.h"
#include "elm_priv.h"
#include "efl_access_selection.eo.c"

View File

@ -4,8 +4,6 @@
#define EFL_ACCESS_TEXT_PROTECTED
#include <Elementary.h>
#include "elm_widget.h"
#include "elm_priv.h"
void

View File

@ -4,8 +4,6 @@
#define EFL_ACCESS_VALUE_PROTECTED
#include <Elementary.h>
#include "elm_widget.h"
#include "elm_priv.h"
#include "efl_access_value.eo.c"

View File

@ -5,8 +5,6 @@
#define EFL_ACCESS_ACTION_PROTECTED
#define EFL_ACCESS_WIDGET_ACTION_PROTECTED
#include <Elementary.h>
#include "elm_widget.h"
#include "elm_priv.h"
extern Eina_Hash *_elm_key_bindings;

View File

@ -2,8 +2,6 @@
#include "elementary_config.h"
#endif
#include <Elementary.h>
#include "elm_widget.h"
#include "elm_priv.h"
#include "efl_access_window.eo.c"

View File

@ -2,7 +2,7 @@
# include "elementary_config.h"
#endif
#include <Elementary.h>
#include "elm_priv.h"
#include "efl_ui_internal_text_interactive.h"
#define MY_CLASS EFL_UI_INTERNAL_TEXT_INTERACTIVE_CLASS

View File

@ -8,7 +8,7 @@
#define EFL_UI_FOCUS_COMPOSITION_PROTECTED
#define EFL_UI_WIDGET_FOCUS_MANAGER_PROTECTED
#include <Elementary.h>
#include "elm_priv.h"
#include "efl_ui_list_view_private.h"
#include "efl_ui_list_view_precise_layouter.eo.h"

View File

@ -2,7 +2,7 @@
# include "elementary_config.h"
#endif
#include <Efl.h>
#include "elm_priv.h"
#include <assert.h>
#include "efl_ui_list_view_private.h"

View File

@ -2,16 +2,13 @@
# include "elementary_config.h"
#endif
#include <Emotion.h>
#define EFL_ACCESS_OBJECT_PROTECTED
#define EFL_ACCESS_WIDGET_ACTION_PROTECTED
#include <Elementary.h>
#include "elm_priv.h"
#include "elm_widget_layout.h"
#include "efl_ui_video_private.h"
#include "elm_priv.h"
/* TODO: add buffering support to Emotion and display buffering
* progress in the theme when needed */

View File

@ -4,8 +4,6 @@
#define EFL_ACCESS_OBJECT_PROTECTED
#include <Elementary.h>
#include "elm_widget.h"
#include "elm_priv.h"
extern Eina_List *_elm_win_list;