e: do not include e.h 76/305176/1
authorSooChan Lim <sc1.lim@samsung.com>
Thu, 25 Jan 2024 10:55:23 +0000 (19:55 +0900)
committerJunseok Kim <juns.kim@samsung.com>
Mon, 29 Jan 2024 11:51:14 +0000 (20:51 +0900)
enlightenment does not include e.h file. The definitions and symbols
in e.h file are spread in each related files.

Change-Id: Ia6a6a71d58532fe9557a61532d9aed742717b000

331 files changed:
src/bin/Makefile.mk
src/bin/e_actions.c
src/bin/e_actions_intern.h
src/bin/e_appinfo.c
src/bin/e_appinfo_intern.h
src/bin/e_bg.c
src/bin/e_bg_intern.h
src/bin/e_bindings.c
src/bin/e_bindings_intern.h
src/bin/e_blender.c
src/bin/e_blender_intern.h
src/bin/e_client.c
src/bin/e_client_intern.h
src/bin/e_comp.c
src/bin/e_comp_canvas.c
src/bin/e_comp_canvas_intern.h
src/bin/e_comp_cfdata.c
src/bin/e_comp_cfdata_intern.h
src/bin/e_comp_intern.h
src/bin/e_comp_object.c
src/bin/e_comp_object_intern.h
src/bin/e_comp_screen.c
src/bin/e_comp_screen_intern.h
src/bin/e_comp_wl.c
src/bin/e_comp_wl_buffer.c
src/bin/e_comp_wl_buffer_intern.h
src/bin/e_comp_wl_capture.c
src/bin/e_comp_wl_capture_intern.h
src/bin/e_comp_wl_data.c
src/bin/e_comp_wl_data_intern.h
src/bin/e_comp_wl_input.c
src/bin/e_comp_wl_input_intern.h
src/bin/e_comp_wl_intern.h
src/bin/e_comp_wl_renderer.c
src/bin/e_comp_wl_renderer_intern.h
src/bin/e_comp_wl_rsm.c
src/bin/e_comp_wl_rsm_intern.h
src/bin/e_comp_wl_screenshooter.c
src/bin/e_comp_wl_screenshooter_intern.h
src/bin/e_comp_wl_shell.c
src/bin/e_comp_wl_subsurface.c
src/bin/e_comp_wl_subsurface_intern.h
src/bin/e_comp_wl_tbm.c
src/bin/e_comp_wl_tbm_intern.h
src/bin/e_comp_wl_tizen_hwc.c
src/bin/e_comp_wl_tizen_hwc_intern.h
src/bin/e_comp_wl_viewport.c
src/bin/e_comp_wl_viewport_intern.h
src/bin/e_compositor.c
src/bin/e_compositor_intern.h
src/bin/e_config.c
src/bin/e_config_data.c
src/bin/e_config_intern.h
src/bin/e_dbus_conn.c
src/bin/e_dbus_conn_intern.h
src/bin/e_desk.c
src/bin/e_desk_area.c
src/bin/e_desk_area_intern.h
src/bin/e_desk_intern.h
src/bin/e_device.c
src/bin/e_device_intern.h
src/bin/e_devicemgr.c
src/bin/e_devicemgr_block.c
src/bin/e_devicemgr_conf.c
src/bin/e_devicemgr_input.c
src/bin/e_devicemgr_inputgen.c
src/bin/e_devicemgr_intern.h
src/bin/e_devicemgr_keyboard_grab.c
src/bin/e_devicemgr_wl.c
src/bin/e_dnd.c
src/bin/e_dnd_intern.h
src/bin/e_dpms.c
src/bin/e_dpms_intern.h
src/bin/e_egl_sync.c
src/bin/e_egl_sync_intern.h
src/bin/e_env.c
src/bin/e_env_intern.h
src/bin/e_eom.c
src/bin/e_eom_intern.h [new file with mode: 0644]
src/bin/e_error.c
src/bin/e_error_intern.h
src/bin/e_explicit_sync.c
src/bin/e_explicit_sync_intern.h
src/bin/e_focus.c
src/bin/e_focus_intern.h
src/bin/e_focus_policy_history.c
src/bin/e_focus_policy_iface.c
src/bin/e_focus_policy_iface.h
src/bin/e_focus_policy_topmost.c
src/bin/e_foreign.c
src/bin/e_foreign_intern.h
src/bin/e_foreign_shell.c
src/bin/e_gesture.c
src/bin/e_gesture_intern.h
src/bin/e_grabinput.c
src/bin/e_grabinput_intern.h
src/bin/e_hints.c
src/bin/e_hints_intern.h
src/bin/e_hwc.c
src/bin/e_hwc_intern.h
src/bin/e_hwc_planes.c
src/bin/e_hwc_planes_intern.h [new file with mode: 0644]
src/bin/e_hwc_window.c
src/bin/e_hwc_window_intern.h
src/bin/e_hwc_window_queue.c
src/bin/e_hwc_window_queue_intern.h [new file with mode: 0644]
src/bin/e_hwc_windows.c
src/bin/e_hwc_windows_intern.h
src/bin/e_icon.c
src/bin/e_icon_intern.h
src/bin/e_info_client.c
src/bin/e_info_protocol.c
src/bin/e_info_protocol_intern.h
src/bin/e_info_server.c
src/bin/e_info_server_input.c
src/bin/e_info_server_input_intern.h
src/bin/e_info_server_intern.h
src/bin/e_input.c
src/bin/e_input_device.c
src/bin/e_input_evdev.c
src/bin/e_input_event.c
src/bin/e_input_event_intern.h
src/bin/e_input_inputs.c
src/bin/e_input_intern.h
src/bin/e_input_log.h
src/bin/e_intern.h [new file with mode: 0644]
src/bin/e_keyrouter.c
src/bin/e_keyrouter_conf.c
src/bin/e_keyrouter_events.c
src/bin/e_keyrouter_intern.h
src/bin/e_keyrouter_list.c
src/bin/e_keyrouter_wl.c
src/bin/e_layout.c
src/bin/e_layout_intern.h
src/bin/e_log.c
src/bin/e_log_intern.h [new file with mode: 0644]
src/bin/e_magnifier.c
src/bin/e_magnifier_intern.h
src/bin/e_main.c
src/bin/e_main_intern.h [new file with mode: 0644]
src/bin/e_map.c
src/bin/e_map_intern.h
src/bin/e_maximize.c
src/bin/e_maximize_intern.h
src/bin/e_module.c
src/bin/e_module_intern.h
src/bin/e_mouse.c
src/bin/e_mouse_intern.h
src/bin/e_msg.c
src/bin/e_msg_intern.h
src/bin/e_object.c
src/bin/e_output.c
src/bin/e_output_intern.h
src/bin/e_path.c
src/bin/e_path_intern.h
src/bin/e_pixmap.c
src/bin/e_pixmap_intern.h
src/bin/e_place.c
src/bin/e_place_intern.h
src/bin/e_plane.c
src/bin/e_plane_renderer.c
src/bin/e_pointer.c
src/bin/e_pointer_intern.h
src/bin/e_policy.c
src/bin/e_policy_conformant.c
src/bin/e_policy_conformant_intern.h
src/bin/e_policy_intern.h
src/bin/e_policy_softkey.c
src/bin/e_policy_stack.c
src/bin/e_policy_visibility.c
src/bin/e_policy_visibility_intern.h
src/bin/e_policy_wl.c
src/bin/e_policy_wl_display.c
src/bin/e_policy_wl_display_intern.h
src/bin/e_policy_wl_intern.h
src/bin/e_prefix.c
src/bin/e_prefix_intern.h
src/bin/e_presentation_time.c
src/bin/e_presentation_time_intern.h
src/bin/e_privilege.c
src/bin/e_privilege_intern.h
src/bin/e_process.c
src/bin/e_process_intern.h
src/bin/e_scale.c
src/bin/e_scale_intern.h
src/bin/e_screensaver.c
src/bin/e_screensaver_intern.h
src/bin/e_security.c
src/bin/e_security_intern.h
src/bin/e_signals.c
src/bin/e_signals_intern.h
src/bin/e_subsurface_watcher.c
src/bin/e_subsurface_watcher_intern.h
src/bin/e_tbm_gbm_server.c
src/bin/e_tbm_gbm_server_intern.h
src/bin/e_test_helper.c
src/bin/e_test_helper_intern.h
src/bin/e_theme.c
src/bin/e_theme_intern.h
src/bin/e_user.c
src/bin/e_user_intern.h
src/bin/e_util_transform.c
src/bin/e_util_transform_intern.h [new file with mode: 0644]
src/bin/e_utils.c
src/bin/e_utils_intern.h
src/bin/e_uuid_store.c
src/bin/e_uuid_store_intern.h
src/bin/e_wtz_shell.c
src/bin/e_wtz_shell_intern.h
src/bin/e_xdg_shell_v6.c
src/bin/e_xdg_shell_v6_intern.h
src/bin/e_zone.c
src/bin/e_zone_intern.h
src/bin/services/e_service_cbhm.c
src/bin/services/e_service_cbhm_intern.h
src/bin/services/e_service_gesture.c
src/bin/services/e_service_gesture_intern.h [new file with mode: 0644]
src/bin/services/e_service_indicator.c
src/bin/services/e_service_indicator_intern.h
src/bin/services/e_service_kvm.c
src/bin/services/e_service_kvm_intern.h
src/bin/services/e_service_launcher.c
src/bin/services/e_service_launcher_intern.h
src/bin/services/e_service_lockscreen.c
src/bin/services/e_service_lockscreen_intern.h
src/bin/services/e_service_quickpanel.c
src/bin/services/e_service_quickpanel_intern.h
src/bin/services/e_service_region.c
src/bin/services/e_service_region_intern.h
src/bin/services/e_service_scrsaver.c
src/bin/services/e_service_scrsaver_intern.h
src/bin/services/e_service_softkey.c
src/bin/services/e_service_softkey_intern.h
src/bin/services/e_service_taskbar.c
src/bin/services/e_service_taskbar_intern.h
src/bin/services/e_service_volume.c
src/bin/services/e_service_volume_intern.h
src/bin/video/e_client_video.c
src/bin/video/e_client_video_intern.h
src/bin/video/e_comp_wl_video.c
src/bin/video/e_comp_wl_video_buffer.c
src/bin/video/e_comp_wl_video_buffer_intern.h
src/bin/video/e_comp_wl_video_intern.h
src/bin/video/e_util_video.c
src/bin/video/e_util_video_intern.h
src/bin/video/e_video_comp_iface.h
src/bin/video/e_video_debug.c
src/bin/video/e_video_debug_intern.h
src/bin/video/e_zone_video.c
src/bin/video/e_zone_video_intern.h
src/bin/video/iface/e_video_external.c
src/bin/video/iface/e_video_external_intern.h
src/bin/video/iface/e_video_fallback.c
src/bin/video/iface/e_video_fallback_intern.h
src/bin/video/iface/e_video_hwc.c
src/bin/video/iface/e_video_hwc_intern.h
src/bin/video/iface/e_video_hwc_planes.c
src/bin/video/iface/e_video_hwc_windows.c
src/include/e.h
src/include/e_actions.h
src/include/e_appinfo.h
src/include/e_bindings.h
src/include/e_client.h
src/include/e_comp.h
src/include/e_comp_canvas.h
src/include/e_comp_cfdata.h
src/include/e_comp_object.h
src/include/e_comp_screen.h
src/include/e_comp_wl.h
src/include/e_comp_wl_capture.h
src/include/e_comp_wl_input.h
src/include/e_comp_wl_rsm.h
src/include/e_comp_wl_tbm.h
src/include/e_comp_wl_video_buffer.h
src/include/e_comp_wl_viewport.h
src/include/e_config.h
src/include/e_config_data.h
src/include/e_dbus_conn.h
src/include/e_desk.h
src/include/e_desk_area.h
src/include/e_device.h
src/include/e_devicemgr.h
src/include/e_dnd.h
src/include/e_egl_sync.h
src/include/e_eom.h
src/include/e_explicit_sync.h
src/include/e_gesture.h
src/include/e_hints.h
src/include/e_hwc.h
src/include/e_hwc_planes.h [deleted file]
src/include/e_hwc_window.h
src/include/e_hwc_window_queue.h [deleted file]
src/include/e_hwc_windows.h
src/include/e_includes.h
src/include/e_info_server.h
src/include/e_info_shared_types.h
src/include/e_input.h
src/include/e_keyrouter.h
src/include/e_keyrouter_private.h
src/include/e_layout.h
src/include/e_log.h
src/include/e_log_client.h [new file with mode: 0644]
src/include/e_main.h
src/include/e_map.h
src/include/e_module.h
src/include/e_object.h
src/include/e_output.h
src/include/e_pixmap.h
src/include/e_plane.h
src/include/e_plane_renderer.h
src/include/e_pointer.h
src/include/e_policy.h
src/include/e_policy_private_data.h
src/include/e_policy_visibility.h
src/include/e_policy_wl.h
src/include/e_prefix.h
src/include/e_presentation_time.h
src/include/e_privilege.h
src/include/e_process.h
src/include/e_screensaver.h
src/include/e_security.h
src/include/e_service_gesture.h
src/include/e_service_quickpanel.h
src/include/e_service_softkey.h
src/include/e_theme.h
src/include/e_types.h [new file with mode: 0644]
src/include/e_util_transform.h
src/include/e_utils.h
src/include/e_zone.h
src/modules/bufferqueue/e_mod_main.c
tests/Makefile.am

index b2a34c93f423906cb02b46bb14c5b5e16d5c16f7..3b67e4749a3dd9ef57e042de77cf374f97a565d2 100644 (file)
@@ -67,10 +67,8 @@ src/include/e_comp_screen.h \
 src/include/e_comp_wl_input.h \
 src/include/e_comp_wl.h \
 src/include/e_hwc.h \
-src/include/e_hwc_planes.h \
 src/include/e_hwc_windows.h \
 src/include/e_hwc_window.h \
-src/include/e_hwc_window_queue.h \
 src/include/e_explicit_sync.h \
 src/include/e_egl_sync.h \
 src/include/e_info_server_input.h \
@@ -97,14 +95,14 @@ src/include/e_process.h \
 src/include/e_privilege.h \
 src/include/e_security.h \
 src/include/e_keyrouter.h \
-src/include/e_keyrouter_private.h \
 src/include/e_gesture.h \
 src/include/e_input.h \
 src/include/e_dbus_conn.h \
 src/include/e_devicemgr.h \
 src/include/e_map.h \
 src/include/e_input_event.h \
-src/include/e_device.h
+src/include/e_device.h \
+src/include/e_types.h
 
 enlightenment_src = \
 src/bin/e_actions.c \
index 3a4de649e943c65d7b9ecdecd43d5f56c4e0adea..88d59fabdc93303a427edb09456cb02e07dbbd79 100644 (file)
@@ -1,10 +1,29 @@
-#include "e.h"
 #include "e_actions_intern.h"
 #include "e_utils_intern.h"
 #include "e_client_intern.h"
+#include "e_object.h"
 
+#define E_ACTION_TYPE 0xE0b01010
 #define INITS
 
+typedef struct _E_Action_Description E_Action_Description;
+typedef struct _E_Action_Group       E_Action_Group;
+
+struct _E_Action_Description
+{
+   const char *act_name;
+   const char *act_cmd;
+   const char *act_params;
+   const char *param_example;
+   int         editable;
+};
+
+struct _E_Action_Group
+{
+   const char *act_grp;
+   Eina_List  *acts;
+};
+
 /* local subsystem functions */
 static void       _e_action_free(E_Action *act);
 static int        _action_groups_sort_cb(const void *d1, const void *d2);
index a63ad1196d4f0e3018602caed4779eee492ef218..83fc9daed000786eaa64347a8df9b7eca70f772c 100644 (file)
@@ -1,43 +1,8 @@
 #ifndef E_ACTIONS_INTERN_H
 #define E_ACTIONS_INTERN_H
 
-#define E_ACTION_TYPE 0xE0b01010
-
-typedef struct _E_Action_Description E_Action_Description;
-typedef struct _E_Action_Group       E_Action_Group;
-
-struct _E_Action
-{
-   E_Object    e_obj_inherit;
-
-   const char *name;
-   struct
-   {
-      void (*go)(E_Object *obj, const char *params);
-      void (*go_mouse)(E_Object *obj, const char *params, E_Binding_Event_Mouse_Button *ev);
-      void (*go_wheel)(E_Object *obj, const char *params, E_Binding_Event_Wheel *ev);
-      void (*go_key)(E_Object *obj, const char *params, Ecore_Event_Key *ev);
-      void (*go_signal)(E_Object *obj, const char *params, const char *sig, const char *src);
-      void (*end)(E_Object *obj, const char *params);
-      void (*end_mouse)(E_Object *obj, const char *params, E_Binding_Event_Mouse_Button *ev);
-      void (*end_key)(E_Object *obj, const char *params, Ecore_Event_Key *ev);
-   } func;
-};
-
-struct _E_Action_Description
-{
-   const char *act_name;
-   const char *act_cmd;
-   const char *act_params;
-   const char *param_example;
-   int         editable;
-};
-
-struct _E_Action_Group
-{
-   const char *act_grp;
-   Eina_List  *acts;
-};
+#include "e_intern.h"
+#include "e_actions.h"
 
 EINTERN int      e_actions_init(void);
 EINTERN int      e_actions_shutdown(void);
index 07e2fb6d5772a42608ae02836401a78d08768eb0..70fcc1ff4776334dd518ad4538dcd39c62650f33 100644 (file)
@@ -1,6 +1,5 @@
-#include "e.h"
-#include "e_appinfo.h"
 #include "e_appinfo_intern.h"
+#include "e_utils_intern.h"
 
 static Eina_List *appinfo_list;
 
index e7198f5b6e5663c49b1db0e056f6677458418be1..9f754a371cc427e1fb28fa1259f18f07a294b4fa 100644 (file)
@@ -1,6 +1,9 @@
 # ifndef E_APPINFO_INTERN_H
 # define E_APPINFO_INTERN_H
 
+#include "e_intern.h"
+#include "e_appinfo.h"
+
 struct _E_Appinfo_Hook
 {
    EINA_INLIST;
index b7b81ac06a53840d98740c62283f67f606ae9904..786325267f3f3ea9fae299c8a079512947d585c1 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_bg_intern.h"
 #include "e_utils_intern.h"
 #include "e_theme_intern.h"
index 74da12b1f72ffc07f853789f849ccfafa6d83ac9..1c99b37ae75acc6e546977f8dfe012518668cd80 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_BG_INTERN_H
 #define E_BG_INTERN_H
 
+#include "e_intern.h"
+#include "e_config_intern.h"
+
 typedef enum {
    E_BG_TRANSITION_NONE,
    E_BG_TRANSITION_START,
index 67f9ea1986a0be9708a645ff0eae1308bc3b3306..7e4c65cf5dcdb4f56fb3c165fc646c3c9a863011 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_bindings_intern.h"
 #include "e_actions_intern.h"
 #include "e_utils_intern.h"
index 071d7628476053109b82f2575d709eb1702f492c..830a263424284d70a7b69de738d61f7874c8bc1c 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_BINDINGS_INTERN_H
 #define E_BINDINGS_INTERN_H
 
+#include "e_intern.h"
+#include "e_bindings.h"
+
 typedef enum _E_Binding_Context
 {
    E_BINDING_CONTEXT_NONE,
@@ -34,9 +37,6 @@ typedef struct _E_Binding_Key    E_Binding_Key;
 typedef struct _E_Binding_Signal E_Binding_Signal;
 typedef struct _E_Binding_Wheel  E_Binding_Wheel;
 
-typedef struct E_Binding_Event_Mouse_Button E_Binding_Event_Mouse_Button;
-typedef struct E_Binding_Event_Wheel E_Binding_Event_Wheel;
-
 struct E_Binding_Event_Mouse_Button
 {
    int               button; /**< Mouse button number that was raised (1 - 32) */
index 0e4face05ec7670dacdbbe1473949dea6a0a54c0..d2d3a2541bd6ad796118ae352eb60869ab864d13 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_blender_intern.h"
 #include "e_client_intern.h"
 #include "e_comp_object_intern.h"
index d9b96e3759d0ac1a0f7fe08f0cad47a0be84a1da..c916f99bc006c2231d0dd27aa7b1939a77d1bbee 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_BLENDER_INTERN_H
 #define E_BLENDER_INTERN_H
 
+#include "e_intern.h"
+
 typedef struct _E_Blender E_Blender;
 typedef struct _E_Blend E_Blend;
 
index 1db211330057fb63a59b2603d8dec90c067fac43..3951166e82f962ba6fc39b1a13ba514e9d917681 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_client_intern.h"
 #include "e_actions_intern.h"
 #include "e_appinfo_intern.h"
@@ -17,6 +16,7 @@
 #include "e_desk_area_intern.h"
 #include "e_desk_intern.h"
 #include "e_zone_intern.h"
+#include "e_config_intern.h"
 
 #define PRI(ec) ((E_Client_Private *)e_object_data_get(E_OBJECT(ec)))
 
index b4609cba7b2f880442d68e7024bcfe6b034b3ab8..cac1a9038ac91d4834e5217a569c8b721a2e358a 100644 (file)
@@ -1,12 +1,13 @@
 #ifndef E_CLIENT_INTERN_H
 #define E_CLIENT_INTERN_H
 
+#include "e_intern.h"
+#include "e_client.h"
 #include "e_pixmap_intern.h"
+#include "e_comp_wl_capture_intern.h"
 
 #include <wayland-server.h>
 
-typedef struct E_Client E_Client;
-
 //#ifdef REFACTOR_DESK_AREA
 typedef struct _E_Client_Data_Get_Above
 {
index 529bb75a4706e4d4f84f7eb2bf6a5ce063e193bf..cc9f2f1d9c6ec0308bfd907c3dc2348c6dc332ad 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_comp_intern.h"
 #include "e_bg_intern.h"
 #include "e_utils_intern.h"
 #include "e_focus_intern.h"
 #include "e_comp_object_intern.h"
 #include "e_zone_intern.h"
+#include "e_config_intern.h"
+#include "e_screensaver_intern.h"
+#include "e_hwc_planes_intern.h"
 
 #include <sys/xattr.h>
+#include <sys/types.h>
+#include <grp.h>
+#include <pwd.h>
 
 #define OVER_FLOW 1
 //////////////////////////////////////////////////////////////////////////
index e447ab4c2e50acf3b499c16d23c6fdd6939deb7a..66d807e6190070530ebffdcd5be80cbac50391e1 100644 (file)
@@ -1,10 +1,11 @@
-#include "e.h"
 #include "e_comp_canvas_intern.h"
 #include "e_comp_screen_intern.h"
 #include "e_comp_intern.h"
 #include "e_output_intern.h"
 #include "e_client_intern.h"
 #include "e_zone_intern.h"
+#include "e_theme_intern.h"
+#include "e_config_intern.h"
 
 static Eina_List *handlers;
 static Eina_Bool _ev_freeze = EINA_FALSE;
index bd96b16e272dfc01e88594acf3908fc52ca890cd..e969f7b39a3ee6578dfb5dc4600a57df90e6e8ac 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_COMP_CANVAS_INTERN_H
 #define E_COMP_CANVAS_INTERN_H
 
+#include "e_intern.h"
+#include "e_comp_canvas.h"
+
 EINTERN Eina_Bool  e_comp_canvas_init(int w, int h);
 EINTERN void       e_comp_canvas_clear(void);
 EINTERN void       e_comp_all_freeze(void);
index 12a896755089ffabb154302186d2105e03467617..6b4d3f05b274825ae94d3625238ccc767384d9b8 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_comp_cfdata_intern.h"
 
 EINTERN void
index 8b336bc049e8bff140ee5877dbb464b010707134..c2361e8814cadc85a8287e2badb4d8df042a7cef 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef E_COMP_CFDATA_INTERN_H
 #define E_COMP_CFDATA_INTERN_H
 
+#include "e_intern.h"
+#include "e_comp_cfdata.h"
+#include "e_config_intern.h"
+
 #define E_COMP_VERSION 1
 
 EINTERN void           e_comp_cfdata_edd_init(E_Config_DD **conf_edd, E_Config_DD **match_edd);
index cd848024d2948f9f46e93ea1877ac3aaa8ba1f70..c79a7bbca8315c1e38da4a7bd7f19fa451a6d2e5 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_COMP_INTERN_H
 #define E_COMP_INTERN_H
 
+#include "e_intern.h"
+#include "e_comp.h"
+
 EINTERN Eina_Bool     e_comp_init(void);
 EINTERN int           e_comp_shutdown(void);
 
index 53f715c4233b3031e0fedcfb424db15517f8788c..17d7e68ea74457405944ec15bf1651dd921d94ab 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_comp_object_intern.h"
 #include "e_bindings_intern.h"
 #include "e_utils_intern.h"
@@ -18,6 +17,8 @@
 #include "e_client_video_intern.h"
 #include "e_client_intern.h"
 #include "e_zone_intern.h"
+#include "e_theme_intern.h"
+#include "e_config_intern.h"
 
 /* data keys:
 
index 2894d22d7a3e3d227b31d37c6c09666755d0d7eb..b7f128c9aabe8cc4f63f302fed02ca3f696efd94 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef E_COMP_OBJECT_INTERN_H
 #define E_COMP_OBJECT_INTERN_H
 
+#include "e_intern.h"
+#include "e_comp_object.h"
+#include "e_object.h"
+
 #include <wayland-server.h>
 
 //#ifdef REFACTOR_DESK_AREA
index f99591aaf9a1df1cf92df38bf9cfc6b1c22f7879..ed5e07bcc574623118070f85ce2655a928d96122 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_client_intern.h"
 #include "e_utils_intern.h"
 #include "e_scale_intern.h"
 #include "e_hwc_window_intern.h"
 #include "e_hwc_windows_intern.h"
 #include "e_egl_sync_intern.h"
+#include "e_config_intern.h"
+#include "e_dbus_conn_intern.h"
+#include "e_main_intern.h"
+#include "e_hwc_planes_intern.h"
 
 #include "Eeze.h"
 #include <tizen-extension-server-protocol.h>
index 632dbc4448ff4df9da40ca1ade6b7f06474a7a14..62f398797c80263aa44b3cfcccadcd1541e99609 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef E_COMP_SCREEN_INTER_H
 #define E_COMP_SCREEN_INTER_H
 
+#include "e_intern.h"
+#include "e_comp_screen.h"
+
+#include <Eldbus.h>
 #include <tdm.h>
 
 typedef struct _E_Screen        E_Screen;
index 0ce5c7461862535f3881a839b2572085fe9d4f64..17f0e95b8f638103e87f1d6a2ff982c2a368acf2 100644 (file)
@@ -1,4 +1,4 @@
-#include "e.h"
+
 #include "e_comp_wl_intern.h"
 #include "e_foreign_intern.h"
 #include "e_wtz_shell_intern.h"
@@ -35,6 +35,7 @@
 #include "e_comp_object_intern.h"
 #include "e_desk_intern.h"
 #include "e_zone_intern.h"
+#include "e_hints_intern.h"
 
 #include <tizen-extension-server-protocol.h>
 #include <relative-pointer-unstable-v1-server-protocol.h>
@@ -46,6 +47,9 @@
 #include <libds/single_pixel_buffer_v1.h>
 #include <Evas_GL.h>
 
+ #include <ctype.h>
+ #include <sys/resource.h>
+
 /* handle include for printing uint64_t */
 #define __STDC_FORMAT_MACROS
 #include <inttypes.h>
index 7f3d3ca888d45a5599bdd721ad111f285eac79fb..1ba0c4afe4078d5d3faee9b9bab33fe8fefad68b 100644 (file)
@@ -1,10 +1,12 @@
-#include "e.h"
+
 #include "e_comp_wl_buffer_intern.h"
 #include "e_tbm_gbm_server_intern.h"
 #include "e_explicit_sync_intern.h"
 
 #include <libds/single_pixel_buffer_v1.h>
 
+#include <wayland-tbm-server.h>
+
 typedef struct _E_Buffer E_Buffer;
 
 struct _E_Buffer
index 027da2cfba33b0ef47a46c9ee9fe2d5812386156..9d07f0df8d28bc983276fd6e22787d4d99c34267 100644 (file)
@@ -1,12 +1,14 @@
 #ifndef E_COMP_WL_BUFFER_INTERN_H
 #define E_COMP_WL_BUFFER_INTERN_H
 
+#include "e_intern.h"
+
 #include <libds/types/ds_buffer.h>
 #include <tbm_surface.h>
 
 EINTERN E_Comp_Wl_Buffer *e_comp_wl_buffer_get(struct ds_buffer *ds_buffer);
 EINTERN E_Comp_Wl_Buffer *e_comp_wl_buffer_create_with_tbm_surface(tbm_surface_h tbm_surface);
-EINTERN void e_comp_wl_buffer_destroy(E_Comp_Wl_Buffer *comp_buffer);
-EINTERN void *e_comp_wl_buffer_single_pixel_buffer_data_get(E_Comp_Wl_Buffer *buffer);
+EINTERN void              e_comp_wl_buffer_destroy(E_Comp_Wl_Buffer *comp_buffer);
+EINTERN void             *e_comp_wl_buffer_single_pixel_buffer_data_get(E_Comp_Wl_Buffer *buffer);
 
 #endif
index 9628455a8071f1f5e105901a1c3946d58331e7ea..1419c586662846cc9797352427e3d26864438e71 100644 (file)
@@ -1,8 +1,11 @@
-#include "e.h"
 #include "e_comp_wl_capture_intern.h"
 #include "e_comp_wl_intern.h"
 #include "e_comp_wl_tbm_intern.h"
 #include "e_util_video_intern.h"
+#include "e_client_video_intern.h"
+#include "e_config_intern.h"
+
+#include <Ecore_File.h>
 
 #include <tbm_surface.h>
 #include <tbm_surface_internal.h>
index 7ad26e923e387a9e40a3862bc902816a38575b91..8049e6b2a1a7c00eb059e2c93d45f603bb65763d 100644 (file)
@@ -1,7 +1,10 @@
 # ifndef E_COMP_WL_CAPTURE_INTERN_H
 # define E_COMP_WL_CAPTURE_INTERN_H
 
-EINTERN void                 e_comp_wl_capture_init(void);
-EINTERN void                 e_comp_wl_capture_shutdown(void);
+#include "e_intern.h"
+#include "e_comp_wl_capture.h"
+
+EINTERN void e_comp_wl_capture_init(void);
+EINTERN void e_comp_wl_capture_shutdown(void);
 
 #endif
index b64532a329b235d2617977229ae76d89974253b0..4f952632de1e2e36d73807a9bee74d7397db7570 100644 (file)
@@ -1,11 +1,14 @@
-#define EXECUTIVE_MODE_ENABLED
-#include "e.h"
 #include "e_comp_wl_data_intern.h"
 #include "e_comp_wl_input_intern.h"
 #include "e_comp_canvas_intern.h"
 #include "e_comp_wl_intern.h"
 #include "e_dnd_intern.h"
 
+#include <fcntl.h>
+#include <unistd.h>
+
+#define EXECUTIVE_MODE_ENABLED
+
 typedef struct {
    int src_fd;
    int dst_fd;
@@ -385,7 +388,7 @@ _e_comp_wl_data_offer_cb_source_destroy(struct wl_listener *listener, void *data
    E_Comp_Wl_Data_Offer *offer;
 
    DBG("Data Offer Source Destroy");
-   offer = container_of(listener, E_Comp_Wl_Data_Offer, 
+   offer = container_of(listener, E_Comp_Wl_Data_Offer,
                         source_destroy_listener);
    if (!offer) return;
 
@@ -635,7 +638,7 @@ _e_comp_wl_data_device_data_offer_create(E_Comp_Wl_Data_Source *source, struct w
    offer = E_NEW(E_Comp_Wl_Data_Offer, 1);
    if (!offer) return NULL;
 
-   offer->resource = 
+   offer->resource =
        wl_resource_create(wl_resource_get_client(data_device_res),
                           &wl_data_offer_interface, 3, 0);
    if (!offer->resource)
@@ -644,11 +647,11 @@ _e_comp_wl_data_device_data_offer_create(E_Comp_Wl_Data_Source *source, struct w
         return NULL;
      }
 
-   wl_resource_set_implementation(offer->resource, 
-                                  &_e_data_offer_interface, offer, 
+   wl_resource_set_implementation(offer->resource,
+                                  &_e_data_offer_interface, offer,
                                   _e_comp_wl_data_offer_cb_resource_destroy);
    offer->source = source;
-   offer->source_destroy_listener.notify = 
+   offer->source_destroy_listener.notify =
      _e_comp_wl_data_offer_cb_source_destroy;
    wl_signal_add(&source->destroy_signal, &offer->source_destroy_listener);
 
@@ -840,9 +843,9 @@ _e_comp_wl_data_device_selection_set(void *data EINA_UNUSED, E_Comp_Wl_Data_Sour
 
    if (source)
      {
-        e_comp_wl->selection.data_source_listener.notify = 
+        e_comp_wl->selection.data_source_listener.notify =
           _e_comp_wl_data_device_destroy_selection_data_source;
-        wl_signal_add(&source->destroy_signal, 
+        wl_signal_add(&source->destroy_signal,
                       &e_comp_wl->selection.data_source_listener);
      }
 }
@@ -1001,7 +1004,7 @@ _e_comp_wl_data_device_cb_selection_set(struct wl_client *client EINA_UNUSED, st
    _e_comp_wl_data_device_selection_set(e_comp->wl_comp_data, source, serial);
 }
 
-static void 
+static void
 _e_comp_wl_data_device_cb_release(struct wl_client *client EINA_UNUSED, struct wl_resource *resource)
 {
    DBG("Data Device Release");
@@ -1025,7 +1028,7 @@ _e_comp_wl_data_device_cb_unbind(struct wl_resource *resource)
    eina_hash_del_by_key(e_comp_wl->mgr.data_resources, &wc);
 }
 
-static void 
+static void
 _e_comp_wl_data_manager_cb_device_get(struct wl_client *client, struct wl_resource *manager_resource, uint32_t id, struct wl_resource *seat_resource EINA_UNUSED)
 {
    struct wl_resource *res;
@@ -1043,17 +1046,17 @@ _e_comp_wl_data_manager_cb_device_get(struct wl_client *client, struct wl_resour
      }
 
    eina_hash_add(e_comp_wl->mgr.data_resources, &client, res);
-   wl_resource_set_implementation(res, &_e_data_device_interface, e_comp->wl_comp_data, 
+   wl_resource_set_implementation(res, &_e_data_device_interface, e_comp->wl_comp_data,
                                   _e_comp_wl_data_device_cb_unbind);
 }
 
-static const struct wl_data_device_manager_interface _e_manager_interface = 
+static const struct wl_data_device_manager_interface _e_manager_interface =
 {
    (void*)e_comp_wl_data_manager_source_create,
    _e_comp_wl_data_manager_cb_device_get
 };
 
-static void 
+static void
 _e_comp_wl_data_cb_bind_manager(struct wl_client *client, void *data EINA_UNUSED, uint32_t version EINA_UNUSED, uint32_t id)
 {
    struct wl_resource *res;
@@ -1431,7 +1434,7 @@ e_comp_wl_data_manager_init(void)
    return EINA_TRUE;
 }
 
-EINTERN void 
+EINTERN void
 e_comp_wl_data_manager_shutdown(void)
 {
    /* destroy the global manager resource */
index 4a56d4cd8614adc010af7de0b233c346065f6de2..93f626b91ac5f792e254d79d9815a58069d994ba 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_COMP_WL_DATA_INTERN_H
 #define E_COMP_WL_DATA_INTERN_H
 
+#include "e_intern.h"
+
 #  ifdef PIPE_BUF
 #   define CLIPBOARD_CHUNK PIPE_BUF
 #  else
@@ -88,22 +90,28 @@ struct _E_Comp_Wl_Manual_Data_Offer
     size_t offset;
 };
 
-EINTERN void e_comp_wl_data_device_send_enter(E_Client *ec);
-EINTERN void e_comp_wl_data_device_send_leave(E_Client *ec);
-EINTERN void *e_comp_wl_data_device_send_offer(E_Client *ec);
-EINTERN void e_comp_wl_data_device_keyboard_focus_set(void);
 EINTERN Eina_Bool e_comp_wl_data_manager_init(void);
-EINTERN void e_comp_wl_data_manager_shutdown(void);
-EINTERN struct wl_resource *e_comp_wl_data_find_for_client(struct wl_client *client);
+EINTERN void      e_comp_wl_data_manager_shutdown(void);
+
+EINTERN void  e_comp_wl_data_device_send_enter(E_Client *ec);
+EINTERN void  e_comp_wl_data_device_send_leave(E_Client *ec);
+EINTERN void *e_comp_wl_data_device_send_offer(E_Client *ec);
+
+EINTERN struct wl_resource    *e_comp_wl_data_find_for_client(struct wl_client *client);
 EINTERN E_Comp_Wl_Data_Source *e_comp_wl_data_manager_source_create(struct wl_client *client, struct wl_resource *resource, uint32_t id);
-EINTERN int e_comp_wl_clipboard_source_ref(E_Comp_Wl_Clipboard_Source *source);
-EINTERN int e_comp_wl_clipboard_source_unref(E_Comp_Wl_Clipboard_Source *source);
+EINTERN void                   e_comp_wl_data_offer_mimetype_action_accept(E_Comp_Wl_Data_Offer *offer);
+
 EINTERN E_Comp_Wl_Clipboard_Source *e_comp_wl_clipboard_source_create(const char *mime_type, uint32_t serial, int *fd);
-EINTERN void e_comp_wl_data_device_only_set(struct wl_resource *data_device_res, Eina_Bool set);
+EINTERN int                         e_comp_wl_clipboard_source_ref(E_Comp_Wl_Clipboard_Source *source);
+EINTERN int                         e_comp_wl_clipboard_source_unref(E_Comp_Wl_Clipboard_Source *source);
+
+EINTERN void      e_comp_wl_data_device_only_set(struct wl_resource *data_device_res, Eina_Bool set);
 EINTERN Eina_Bool e_comp_wl_data_device_manual_selection_set(void *data, size_t size, Eina_List *mime_list);
+EINTERN void      e_comp_wl_data_device_keyboard_focus_set(void);
+
 EINTERN void e_comp_wl_data_current_device_id_set(int id);
-EINTERN int e_comp_wl_data_current_device_id_get(void);
-EINTERN void e_comp_wl_data_offer_mimetype_action_accept(E_Comp_Wl_Data_Offer *offer);
+EINTERN int  e_comp_wl_data_current_device_id_get(void);
+
 EINTERN void e_comp_wl_data_secondary_add(E_Client *ec);
 EINTERN void e_comp_wl_data_secondary_remove(E_Client *ec);
 
index 0a1a9f5838fbc0fe265c3334a54129fa544bc659..352c0a62e68ab8aebec453dc51938cbc71281034 100644 (file)
@@ -1,5 +1,3 @@
-#define EXECUTIVE_MODE_ENABLED
-#include "e.h"
 #include "e_comp_wl_input_intern.h"
 #include "e_utils_intern.h"
 #include "e_comp_wl_intern.h"
@@ -8,11 +6,14 @@
 #include "e_comp_object_intern.h"
 
 #include <sys/mman.h>
+#include <fcntl.h>
 #include <pixman.h>
 
 #include <relative-pointer-unstable-v1-server-protocol.h>
 #include <pointer-constraints-unstable-v1-server-protocol.h>
 
+#define EXECUTIVE_MODE_ENABLED
+
 typedef struct _E_Comp_Wl_Pointer_Constraint E_Comp_Wl_Pointer_Constraint;
 
 typedef enum _E_Comp_Wl_Pointer_Constraint_Type
index ccdbaaa5120067956d3dd60ffee5abe4fc2229e3..8f362f788cdf64992d5214fdc2b662c984c946ee 100644 (file)
@@ -1,31 +1,34 @@
 #ifndef E_COMP_WL_INPUT_INTERN_H
 #define E_COMP_WL_INPUT_INTERN_H
 
+#include "e_intern.h"
+#include "e_comp_wl_input.h"
+
 EINTERN Eina_Bool e_comp_wl_input_init(void);
-EINTERN void e_comp_wl_input_shutdown(void);
-EINTERN Eina_Bool e_comp_wl_input_pointer_check(struct wl_resource *res);
-EINTERN Eina_Bool e_comp_wl_input_relative_pointer_check(struct wl_resource *res);
-EINTERN Eina_Bool e_comp_wl_input_keyboard_check(struct wl_resource *res);
-EINTERN Eina_Bool e_comp_wl_input_touch_check(struct wl_resource *res);
+EINTERN void      e_comp_wl_input_shutdown(void);
 
-EINTERN Eina_Bool e_comp_wl_input_keyboard_modifiers_serialize(void);
-EINTERN void e_comp_wl_input_keyboard_modifiers_update(void);
-EINTERN void e_comp_wl_input_keyboard_state_update(uint32_t keycode, Eina_Bool pressed);
-EINTERN void e_comp_wl_input_keyboard_enter_send(E_Client *client);
+EINTERN void      e_comp_wl_input_seat_caps_set(unsigned int caps);
+EINTERN Eina_Bool e_comp_wl_input_relative_pointer_check(struct wl_resource *res);
 
+EINTERN Eina_Bool e_comp_wl_input_pointer_check(struct wl_resource *res);
 EINTERN void e_comp_wl_input_pointer_enabled_set(Eina_Bool enabled);
-EINTERN void e_comp_wl_input_keyboard_enabled_set(Eina_Bool enabled);
-EINTERN void e_comp_wl_input_touch_enabled_set(Eina_Bool enabled);
-EINTERN void e_comp_wl_input_seat_caps_set(unsigned int caps);
 
-EINTERN struct xkb_keymap *e_comp_wl_input_keymap_compile(struct xkb_context *ctx, struct xkb_rule_names names, char **keymap_path);
+EINTERN Eina_Bool e_comp_wl_input_touch_check(struct wl_resource *res);
+EINTERN void      e_comp_wl_input_touch_enabled_set(Eina_Bool enabled);
 
-EINTERN const char *e_comp_wl_input_keymap_default_rules_get(void);
-EINTERN const char *e_comp_wl_input_keymap_default_model_get(void);
-EINTERN const char *e_comp_wl_input_keymap_default_layout_get(void);
-EINTERN const char *e_comp_wl_input_keymap_default_variant_get(void);
-EINTERN const char *e_comp_wl_input_keymap_default_options_get(void);
+EINTERN Eina_Bool e_comp_wl_input_keyboard_check(struct wl_resource *res);
+EINTERN Eina_Bool e_comp_wl_input_keyboard_modifiers_serialize(void);
+EINTERN void      e_comp_wl_input_keyboard_modifiers_update(void);
+EINTERN void      e_comp_wl_input_keyboard_state_update(uint32_t keycode, Eina_Bool pressed);
+EINTERN void      e_comp_wl_input_keyboard_enter_send(E_Client *client);
+EINTERN void      e_comp_wl_input_keyboard_enabled_set(Eina_Bool enabled);
 
-EINTERN char *e_comp_wl_input_keymap_keycode_to_keyname(int keycode);
+EINTERN struct xkb_keymap *e_comp_wl_input_keymap_compile(struct xkb_context *ctx, struct xkb_rule_names names, char **keymap_path);
+EINTERN const char        *e_comp_wl_input_keymap_default_rules_get(void);
+EINTERN const char        *e_comp_wl_input_keymap_default_model_get(void);
+EINTERN const char        *e_comp_wl_input_keymap_default_layout_get(void);
+EINTERN const char        *e_comp_wl_input_keymap_default_variant_get(void);
+EINTERN const char        *e_comp_wl_input_keymap_default_options_get(void);
+EINTERN char              *e_comp_wl_input_keymap_keycode_to_keyname(int keycode);
 
 #endif
index c8e38b50edd8e412caa7dd82c3267074dddc30db..97e94bd204512645b9c36752515c29091e0aa43e 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_COMP_WL_INTERN_H
 #define E_COMP_WL_INTERN_H
 
+#include "e_intern.h"
+#include "e_comp_wl.h"
+#include "e_policy_wl.h"
 #include "e_device_intern.h"
 
 EINTERN Eina_Bool e_comp_wl_init(void);
index f7698518eea3f2f81e154f0c8c1ae24b519c1933..cf23d5d1573631e041831d4fb67d96459166ea78 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_comp_wl_renderer_intern.h"
 
 #include <tizen-extension-server-protocol.h>
index 4f70f7f422713f5effdbb5f07cf9fa4bc3a84170..59e4e1b4629b3a055427bf49eb9f5835346bdc9a 100644 (file)
@@ -1,8 +1,11 @@
 #ifndef E_COMP_WL_RENDERER_INTERN_H
 #define E_COMP_WL_RENDERER_INTERN_H
 
+#include "e_intern.h"
+
 EINTERN Eina_Bool e_comp_wl_renderer_init(void);
 EINTERN void      e_comp_wl_renderer_shutdown(void);
+
 EINTERN Eina_Bool e_comp_wl_renderer_client_redraw_request_send(E_Client *ec);
 
 #endif
index 68d1a8bbd75f3bd5c44e22674acb99afe29e589b..afb5b2761c6c9e8d92a014a4dc988ebd296a6b85 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_comp_wl_rsm_intern.h"
 #include "e_device_intern.h"
 #include "e_client_intern.h"
@@ -10,6 +9,8 @@
 #include "e_policy_intern.h"
 #include "e_comp_object_intern.h"
 #include "e_zone_intern.h"
+#include "e_utils_intern.h"
+#include "e_security_intern.h"
 
 #include <tizen-remote-surface-server-protocol.h>
 #include <tbm_surface.h>
@@ -17,7 +18,9 @@
 #include <wayland-tbm-server.h>
 #include <tizen-extension-server-protocol.h>
 
+#include <fcntl.h>
 #include <pixman.h>
+#include <Ecore_File.h>
 
 #define RSMINF(f, ec, str, obj, x...)    \
    do                                    \
index 56ca17be8daf171c3a9c02f702e5ae41ef741104..31b6035bf05dcfa315e5868ed1260f3a17883e98 100644 (file)
@@ -1,8 +1,14 @@
 #ifndef E_COMP_WL_RSM_INTERN_H
 #define E_COMP_WL_RSM_INTERN_H
 
+#include "e_intern.h"
+#include "e_comp_wl_rsm.h"
+
+#include <Eldbus.h>
+
 EINTERN void       e_comp_wl_remote_surface_init(void);
 EINTERN void       e_comp_wl_remote_surface_shutdown(void);
+
 EINTERN Eina_Bool  e_comp_wl_remote_surface_commit(E_Client *ec);
 EINTERN void       e_comp_wl_remote_surface_image_save(E_Client *ec);
 EINTERN void       e_comp_wl_remote_surface_image_save_cancel(E_Client *ec);
index 0ebf3109b0a151b3c09de44b54b18539b104a282..3b800c5c99772f5cd1ee259bc742a36e30f74de2 100644 (file)
@@ -1,13 +1,9 @@
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include "e.h"
 #include "e_comp_wl_screenshooter_intern.h"
 #include "e_privilege_intern.h"
 #include "e_output_intern.h"
 #include "e_comp_wl_video_buffer_intern.h"
 #include "e_util_video_intern.h"
+#include "e_security_intern.h"
 
 #include <wayland-server.h>
 #include <screenshooter-server-protocol.h>
index aff47d26a0134e5d4cbdd172bd7274d8f04e7967..5bbed81d16e7ceae17bc568c88ad7a98999e3d0c 100644 (file)
@@ -1,7 +1,9 @@
 #ifndef E_COMP_WL_SCREENSHOOTER_INTERN_H
 #define E_COMP_WL_SCREENSHOOTER_INTERN_H
 
-EINTERN int e_comp_wl_screenshooter_init(void);
+#include "e_intern.h"
+
+EINTERN int  e_comp_wl_screenshooter_init(void);
 EINTERN void e_comp_wl_screenshooter_shutdown(void);
 
 #endif
index 23a2fd863b95325a589820754a76ba8e3db20526..22a16d4d68ebca52eae8b4a5cd835c1ec2821151 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_client_intern.h"
 #include "e_actions_intern.h"
 #include "e_bindings_intern.h"
@@ -11,6 +10,7 @@
 #include "e_policy_visibility_intern.h"
 #include "e_comp_object_intern.h"
 #include "e_desk_intern.h"
+#include "e_config_intern.h"
 
 #include <xdg-shell-unstable-v5-server-protocol.h>
 #include <xdg-shell-unstable-v6-server-protocol.h>
index ec6a779ed95e8a1d8c71fd840ff123188f325a8e..55fd5721f0c221e309357e944a79e5c1616f2ec3 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_comp_wl_subsurface_intern.h"
 #include "e_comp_wl_intern.h"
 #include "e_comp_wl_viewport_intern.h"
index 9f8cb9069f8b08e38710a2318da66315610621a6..07af4ef7372b7b5e503afb23550fdab3366bf757 100644 (file)
@@ -1,21 +1,23 @@
 #ifndef _E_COMP_WL_SUBSURFACE_H_
 #define _E_COMP_WL_SUBSURFACE_H_
 
+#include "e_intern.h"
+
 #ifndef WL_HIDE_DEPRECATED
 # define WL_HIDE_DEPRECATED
 #endif
 
 #include <wayland-server.h>
 
+EINTERN Eina_Bool     e_comp_wl_subsurfaces_init(void);
+EINTERN void          e_comp_wl_subsurfaces_shutdown(void);
+
 /* To support tizen_policy interface related to wl_subsurface.
  * tizen_policy.place_subsurface_below_parent
  * tizen_policy.set_subsurface_stand_alone */
 EINTERN void          e_comp_wl_subsurface_resource_stand_alone_mode_set(struct wl_resource *subsurface_resource);
 EINTERN void          e_comp_wl_subsurface_resource_place_below_parent(struct wl_resource *subsurface_resource);
 
-EINTERN Eina_Bool     e_comp_wl_subsurfaces_init(void);
-EINTERN void          e_comp_wl_subsurfaces_shutdown(void);
-
 EINTERN Eina_Bool     e_comp_wl_subsurface_add(struct wl_resource *resource, uint32_t id, struct wl_resource *surface_resource, struct wl_resource *parent_resource);
 EINTERN Eina_Bool     e_comp_wl_subsurface_order_commit(E_Client *ec);
 EINTERN Eina_Bool     e_comp_wl_subsurface_commit(E_Client *ec);
index 2e38b82f98a27d21441e596c488c058b9780d5c6..4dbe698a9b3c58142a9bdcd4f2f10f7f43b1e996 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_comp_wl_tbm_intern.h"
 #include "e_tbm_gbm_server_intern.h"
 #include "e_utils_intern.h"
index 7f7de231aa529b1111919f3e737ce23723c911c0..c9ece7e85190b66a07f5744399e92d815a9f8208 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_COMP_WL_TBM_INTERN_H
 #define E_COMP_WL_TBM_INTERN_H
 
+#include "e_intern.h"
+#include "e_comp_wl_tbm.h"
+
 EINTERN Eina_Bool e_comp_wl_tbm_init(void);
 
 EINTERN struct wl_resource *e_comp_wl_tbm_remote_buffer_get(struct wl_resource *wl_tbm, struct wl_resource *wl_buffer);
index b317cd2a3c9e91cfff1198a55d37d77bb330ba40..f45652e83e6ca292bbf3d22ba42369d13d860101 100644 (file)
@@ -1,8 +1,8 @@
-#include "e.h"
 #include "e_comp_wl_tizen_hwc_intern.h"
 #include "e_utils_intern.h"
 #include "e_error_intern.h"
 #include "e_hwc_window_intern.h"
+#include "e_hwc_window_queue_intern.h"
 
 #include <tizen-hwc-server-protocol.h>
 
index 56a390826260b4df3d2fabbf4c908c03ea137a4a..017bfa91a144c5fa23d51e304d1fc844684db42b 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_COMP_WL_TIZEN_HWC_H
 #define E_COMP_WL_TIZEN_HWC_H
 
+#include "e_intern.h"
+
 typedef struct _E_Comp_Wl_Tizen_Hwc_Feedback_List E_Comp_Wl_Tizen_Hwc_Feedback_List;
 
 struct _E_Comp_Wl_Tizen_Hwc_Feedback_List
@@ -10,6 +12,7 @@ struct _E_Comp_Wl_Tizen_Hwc_Feedback_List
 
 EINTERN Eina_Bool e_comp_wl_tizen_hwc_init(void);
 EINTERN void      e_comp_wl_tizen_hwc_shutdown(void);
+
 EINTERN void      e_comp_wl_tizen_hwc_committed(void);
 EINTERN void      e_comp_wl_tizen_hwc_discarded(void);
 
index d657d412e49ed4dac86925151512dafd6cbfc584..4e61966a5a158549329a6467d8db83e5e09944ee 100644 (file)
@@ -1,13 +1,11 @@
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include "e.h"
 #include "e_compositor_intern.h"
 #include "e_comp_wl_viewport_intern.h"
 #include "e_comp_wl_intern.h"
 #include "e_comp_wl_subsurface_intern.h"
 #include "e_comp_wl_video_buffer_intern.h"
+#include "e_comp_canvas_intern.h"
+#include "e_info_server_input_intern.h"
+#include "e_info_server_intern.h"
 
 #include <wayland-server.h>
 #include <wayland-tbm-server.h>
index 23ce719eab832c4d1dd29b7b583b9b0cdaf81c7a..8cd6fa4ad68b6be6bc0b54405622be183ea9895d 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_COMP_WL_VIEWPORT_INTERN_H
 #define E_COMP_WL_VIEWPORT_INTERN_H
 
+#include "e_intern.h"
+#include "e_comp_wl_viewport.h"
+
 EINTERN int e_comp_wl_viewport_init(void);
 EINTERN void e_comp_wl_viewport_shutdown(void);
 
index 57357870f5f023ddab1c5f30ed813c12fa4dd2b1..5c43227d85a598aa69ffd5605da4b75af77e9764 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_compositor_intern.h"
 #include "e_comp_wl_intern.h"
 #include "e_comp_wl_buffer_intern.h"
index 15ca29dca6bb37b65040277fd01d81e803ced5ef..786ea2f21c9e27d7541fe8716a57ad7f742e5346 100644 (file)
@@ -1,6 +1,11 @@
 #ifndef E_COMPOSITOR_INTERN_H
 #define E_COMPOSITOR_INTERN_H
 
+#include "e_intern.h"
+#include "e_client_intern.h"
+
+#include <wayland-server.h>
+
 typedef struct _E_Surface E_Surface;
 typedef struct _E_Subsurface E_Subsurface;
 
index e6608d3cbc337ee0bdd2fdefaded34d1f4196b26..f720a2426ef0fa255146019386c0372c50244fd8 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_config_intern.h"
 #include "e_user_intern.h"
 #include "e_utils_intern.h"
index 8dd90339f84b15cbee737b1c5a0aa49356691d08..591efc71a20f4cc44c15fe23d3cd58e4a8127620 100644 (file)
@@ -1,4 +1,4 @@
-#include "e.h"
+#include "e_config_intern.h"
 
 static Eina_Hash *config_hash = NULL;
 
index af5193a8aabaa220101e17be487041424c0a3d15..b29afb4dceab067c04158b0c2ee841a24de8f0c4 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_CONFIG_INTERN_H
 #define E_CONFIG_INTERN_H
 
+#include "e_intern.h"
+#include "e_config.h"
+
 EINTERN int         e_config_init(void);
 EINTERN int         e_config_shutdown(void);
 
index 151b1d09aec40145094ba1a53684930a227a1010..98f4aa1433e90d177543fb9e15e4a80e01082f72 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_dbus_conn_intern.h"
 #include "e_utils_intern.h"
 
index e49c9ea213c4a04f47f1c4888b187d8ce7435d78..372521de8fa3146933037bcf7e9b0d0a930cbf8b 100644 (file)
@@ -1,5 +1,8 @@
-#ifndef E_DBUS_CONN_H
-#define E_DBUS_CONN_H
+#ifndef E_DBUS_CONN_INTERN_H
+#define E_DBUS_CONN_INTERN_H
+
+#include "e_intern.h"
+#include "e_dbus_conn.h"
 
 EINTERN Eldbus_Connection *e_dbus_conn_connection_get(void);
 EINTERN Eina_Bool          e_dbus_conn_sync_init(E_DBus_Conn *ed);
index c681a10687d4e883b2e345b3e65225ab89cc05a2..b58d8e66e7c3c4f60c48b283299b4e9d66ff1a08 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_desk_intern.h"
 #include "e_desk_area_intern.h"
 #include "e_client_intern.h"
@@ -8,6 +7,9 @@
 #include "e_output_intern.h"
 #include "e_comp_object_intern.h"
 #include "e_zone_intern.h"
+#include "e_config_intern.h"
+#include "e_policy_wl_intern.h"
+#include "e_policy_intern.h"
 
 #include <libds-tizen/screen.h>
 
index 1d68aad64e9d865b3e99af21bc8e00af806cad15..e97b5a064cc274f2c5a437d197c212e268f42c22 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_desk_area_intern.h"
 #include "e_client_intern.h"
 #ifdef REFACTOR_DESK_AREA
@@ -2820,7 +2819,7 @@ e_desk_area_ec_rearrange(E_Desk_Area *eda, E_Client *ec)
 
    prev_edgc_layer = e_client_desk_area_client_layer_get(ec);
    if (!_check_desk_area_client_layer_validation(prev_edgc_layer)) return;
-   
+
    eda->ec_lists[prev_edgc_layer] = eina_list_remove(eda->ec_lists[prev_edgc_layer], ec);
 
    layer = e_client_desk_area_original_layer_get(ec);
index f52bc65ed962163015048b30f177d338e1b3b6cf..eccfcfbb3e4794dd3043fa46b4cb357296f00225 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_DESK_AREA_INTERN_H
 #define E_DESK_AREA_INTERN_H
 
+#include "e_intern.h"
+#include "e_desk_area.h"
+
 #include <wayland-server.h>
 #include <libds-tizen/screen.h>
 
index a8d4e30357d36cc9f0ffdc29383679b5c66a6510..ae6592809ca2172b122cea96d4bf6b1a181e28b5 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_DESK_INTERN_H
 #define E_DESK_INTERN_H
 
+#include "e_intern.h"
+#include "e_desk.h"
+
 #include <wayland-server.h>
 #include <libds-tizen/screen.h>
 
index 87338db86550a21315e2d67e25dff30bf307b9f5..7e40d3819d0a055b9546dd7deb614af38bd2c655 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_device_intern.h"
 
 typedef struct {
index 4bec527b4703f84de74e649053b75d62410418a3..96311b006436766fbca16eda7816e6d9e040b984 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef E_DEVICE_INTERN_H
 #define E_DEVICE_INTERN_H
 
+#include "e_intern.h"
 #include "e_device.h"
 
 EINTERN E_Device             *e_device_new(void);
index 20229bd56e11862a93810aed65c1a89aebe50189..0c48339508e70dff189678fd3b124d09732c52e4 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_devicemgr_intern.h"
 
 #include <tizen-extension-server-protocol.h>
index 89ecb9208229b8948f220566bd7ecf917828e377..d0e727680a256cfa16324fae29db71d2b99b3a16 100644 (file)
@@ -1,4 +1,4 @@
-#include "e.h"
+
 #include "e_devicemgr_intern.h"
 #include "e_input_intern.h"
 
index db60a6986599dc79db66059b77e7fa0821c57145..0525c291b924420a5eaf651b4e03b877258717dd 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_devicemgr_intern.h"
 
 #define E_DEVICEMGR_INPUT_DFLT_BACK_KEYCODE 166
index 878e061f85d75349d6d77f02bd425d7dc9aa6e24..fad3e48bf26de2e576802893ce5ca3710320c416 100644 (file)
@@ -1,7 +1,10 @@
-#include "e.h"
+
 #include "e_devicemgr_intern.h"
+#include "e_keyrouter_intern.h"
+#include "e_input_intern.h"
 #include "e_input_event.h"
 #include "e_comp_wl_intern.h"
+#include "e_utils_intern.h"
 
 #include <tizen-extension-server-protocol.h>
 
index e80027f5c03eb1c1d21dee45a85d2e9c6b5149b4..a8252edcd51323b7a646a5f042489f35804bb483 100644 (file)
@@ -1,12 +1,16 @@
-#include "e.h"
 #include "e_devicemgr_intern.h"
+#include "e_keyrouter_intern.h"
 #include "e_input_intern.h"
+#include "e_comp_wl_input_intern.h"
+#include "e_utils_intern.h"
 
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
 #include <glib.h>
 #include <linux/uinput.h>
 #include <tizen-extension-server-protocol.h>
 
-
 static Ecore_Device_Class
 _e_devicemgr_inputgen_class_to_ecore_device_class(unsigned int clas)
 {
index 8f5c61589529004d8f466a94e8ef2d5a710f206b..71032ba9223f0c8aeaa93c2c155b6d006d2f1753 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef E_DEVICEMGR_INTERN_H
 #define E_DEVICEMGR_INTERN_H
 
+#include "e_intern.h"
+#include "e_devicemgr.h"
+#include "e_config_intern.h"
+
 #ifdef ENABLE_TTRACE
 #include <ttrace.h>
 #endif
index 4dc6ad21bad51600726458f9e4d4708b62075f41..76ec5d4a1f08862b443db0bb6d85f6f5c0f4ace1 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_devicemgr_intern.h"
 #include "e_input_intern.h"
 #include "e_comp_wl_intern.h"
index 641b76c96c91c3e2f48428efc73094037203f89b..a3687d918b92f8992e29e7a2f79b3809288e3da0 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_devicemgr_intern.h"
 #include "e_input_intern.h"
 #include "e_comp_wl_intern.h"
index 04323767058b4491aa3da2e335c4d09e3f7f6f59..91603802bbcbe57b8ae8f2f590b95df222d29612 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_dnd_intern.h"
 #include "e_comp_wl_data_intern.h"
 #include "e_grabinput_intern.h"
index 9c17ac2d338c248adb62c32a71dfbc5a1996c87e..89f05898567a34f4e15a5dc15266bd9105b6fc8b 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_DND_INTERN_H
 #define E_DND_INTERN_H
 
+#include "e_intern.h"
+#include "e_dnd.h"
+
 #define E_DRAG_TYPE 0xE0b0100f
 
 typedef struct _E_Drag_Hook     E_Drag_Hook;
index a87d2bafce31e66d530f145023a3af7def77d62c..347aa975571eebc4528b34acc18b3ac78b854e4c 100644 (file)
@@ -1,10 +1,6 @@
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include "e.h"
 #include "e_dpms_intern.h"
 #include "e_output_intern.h"
+#include "e_dbus_conn_intern.h"
 
 #include <tizen-dpms-server-protocol.h>
 
index 06f1b7d595093e19bfee1b7f958a8f479f5a887c..eed9b92b597b734f02bd2776dc03165b53ed8e37 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_DPMS_INTERN_H
 #define E_DPMS_INTERN_H
 
+#include "e_intern.h"
+
 EINTERN int e_dpms_init(void);
 EINTERN int e_dpms_shutdown(void);
 
index e141c68c77c486ecad2f7af61ca9c5e1014c2bef..5736718c880ba579c6f0e455440d0dfad699fcb5 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_egl_sync_intern.h"
 #include "e_comp_intern.h"
 
index 5b235dc073eee3f955336e2621ec83280e5819aa..ae7bc0793ecfed1bbb0c3f36a27e27036848c63b 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_EGL_SYNC_INTERN_H
 #define E_EGL_SYNC_INTERN_H
 
+#include "e_intern.h"
+#include "e_egl_sync.h"
+
 EINTERN Eina_Bool    e_egl_sync_init(void);
 EINTERN void         e_egl_sync_deinit(void);
 
index 2eb976b8b94a1276e6a7e99b79af12da05f9689e..5a5f586d1850d62ff1700c592ee0c06e06c55060 100644 (file)
@@ -1,6 +1,6 @@
-#include "e.h"
 #include "e_env_intern.h"
 #include "e_utils_intern.h"
+#include "e_config_intern.h"
 
 /* local subsystem functions */
 
index 423972977904f468c2b3a11200de6040cc73938a..490ac8a8c97bf7ddb6560ee78dcc4c0532a60d10 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_ENV_INTERN_H
 #define E_ENV_INTERN_H
 
+#include "e_intern.h"
+
 /* init and setup */
 EINTERN int  e_env_init(void);
 EINTERN int  e_env_shutdown(void);
index 609b58eaa3334c90a676d65c58ffafc240c43799..a1f65e8eade8aab19e8ecc4f5f93a1e43f98e40c 100644 (file)
@@ -1,8 +1,4 @@
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include "e.h"
+#include "e_eom_intern.h"
 #include "e_client_intern.h"
 #include "e_xdg_shell_v6_intern.h"
 #include "e_comp_screen_intern.h"
diff --git a/src/bin/e_eom_intern.h b/src/bin/e_eom_intern.h
new file mode 100644 (file)
index 0000000..9791b85
--- /dev/null
@@ -0,0 +1,10 @@
+#ifndef E_EOM_INTERN_H
+#define E_EOM_INTERN_H
+
+#include "e_intern.h"
+#include "e_eom.h"
+
+EINTERN Eina_Bool e_eom_init(void);
+EINTERN int       e_eom_shutdown(void);
+
+#endif
index edbee202264125fed3aaf913e696fc54edbc977c..d034d707ee8cb2e69cab0d9c6ea811b509068af3 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_error_intern.h"
 
 /* local subsystem functions */
index f1c12fecbeab987d30b685aa7089646668db6acb..d74618b77d1d2e384a7dd3e03b7498bc2d12c706 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_ERROR_INTERN_H
 #define E_ERROR_INTERN_H
 
+#include "e_intern.h"
+
 #define e_error_message_show(args...) do \
 { \
    char __tmpbuf[4096]; \
index c0d1112248e8919148a94530c692d1226a37e168..2fe0f5fb1cdfc3ed51b378ff384abf3bfd4a6b66 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_explicit_sync_intern.h"
 #include "e_comp_screen_intern.h"
 #include "e_comp_intern.h"
index b0e39d35c4c38440b61df5998f4a85090e9c598c..efdebc6483246956a991f50071c8f7cc12fa9945 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_EXPLICIT_SYNC_INTERN_H
 #define E_EXPLICIT_SYNC_INTERN_H
 
+#include "e_intern.h"
+#include "e_explicit_sync.h"
+
 typedef struct _E_Explicit_Sync E_Explicit_Sync;
 typedef struct _E_Explicit_Sync_Surface E_Explicit_Sync_Surface;
 typedef struct _E_Explicit_Sync_Buffer_Release E_Explicit_Sync_Buffer_Release;
index 46eeef860e83e76c9515c26bb3ebdd910c6c86b8..8de9bd4eb19379a6a20517a50a7f2a7f3d4868af 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_focus_intern.h"
 #include "e_focus_policy_iface.h"
 
index d415409682cef54c7975682d882a9ecfaa7bff4d..648a740da07c866ccc359df4e7d918b7f1cb2994 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_FOCUS_INTERN_H
 #define E_FOCUS_INTERN_H
 
+#include "e_intern.h"
+
 typedef struct _E_Focus E_Focus;
 
 EINTERN E_Focus   *e_focus_new(E_Zone* zone, E_Focus_Policy_Ext policy_type);
index 2e18bf9fb766956b9b315d4de17034b8c0ae18a6..0629e5a298acf969e0bb3ab0d8ef0b3978c0f74d 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_focus_policy_iface.h"
 #include "e_zone_intern.h"
 #include "e_client_intern.h"
@@ -6,6 +5,7 @@
 #include "e_comp_intern.h"
 #include "e_policy_visibility_intern.h"
 #include "e_desk_intern.h"
+#include "e_config_intern.h"
 
 typedef struct _E_Focus_Policy_History_Impl E_Focus_Policy_History;
 typedef struct _E_Focus_Policy_History_Client E_Focus_Policy_History_Client;
index 48fb00f09509dd3c27495330976e12dee4376834..1508c01bcf79ec2f40cf1acd08bcf71060a4541a 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_focus_policy_iface.h"
 
 EINTERN void
index e6cccdceb47da28b56550c25ee1c6e768f6a0e1a..ed27b8d6b4624903d94bd58caf2326fdcd434631 100644 (file)
@@ -1,8 +1,8 @@
-#ifdef E_TYPEDEFS
-#else
 #ifndef E_FOCUS_POLICY_IFACE_H
 #define E_FOCUS_POLICY_IFACE_H
 
+#include "e_intern.h"
+
 typedef struct _E_Focus_Policy_Iface E_Focus_Policy_Iface;
 typedef void                         E_Focus_Policy_Impl;
 
@@ -22,4 +22,3 @@ EINTERN E_Focus_Policy_Iface *e_focus_policy_iface_history_new(E_Zone* zone);
 EINTERN void            e_focus_policy_iface_del(E_Focus_Policy_Iface *policy_iface);
 
 #endif
-#endif
index be02db31b50646cf6fcb36e44ba4b4e2d7a429df..f90ebf53e08e396763b68dde412f7bcebe05b770 100644 (file)
@@ -1,8 +1,8 @@
-#include "e.h"
 #include "e_focus_policy_iface.h"
 #include "e_zone_intern.h"
 #include "e_client_intern.h"
 #include "e_desk_intern.h"
+#include "e_config_intern.h"
 
 typedef struct _E_Focus_Policy_Topmost_Impl E_Focus_Policy_Topmost;
 typedef struct _E_Focus_Policy_Topmost_Client E_Focus_Policy_Topmost_Client;
index 965a887db60e08c4c03d39dcfc05c8f621dc3f5a..a04dda1843f60cebf7321f02a49d14a633948c54 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_foreign_intern.h"
 
 #include <uuid.h>
index 7b3f7c72c5030f08c1d84dadf8b1b1283352d0a8..005bf79cc861ca76685c100bef97a2c9c0389244 100644 (file)
@@ -1,11 +1,7 @@
 #ifndef E_FOREIGN_INTERN_H
 #define E_FOREIGN_INTERN_H
 
-#if 0
-#include "e.h"
-#include <wayland-server.h>
-#include <Eina.h>
-#endif
+#include "e_intern.h"
 
 #ifdef FERR
 # undef FERR
index 3312567bbf377eb3e0d1e57e5daef9d89e46f7d5..a3d6190d9f9911aac778f3a55bf41c5c9c17e144 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_foreign_intern.h"
 #include "e_comp_wl_intern.h"
 #include "e_comp_wl_subsurface_intern.h"
index a8d4871271a9a5d7cadaaa82fc957760a21c9ab7..44d325ed06ac034d31ea2256aa5a155689c7190e 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_gesture_intern.h"
 
 E_API E_Gesture_Info *e_gesture = NULL;
index 082d7fa89fb3e9363310382747088e21bf766060..8e9a02b62623276bc0da52471ae390c3d50d2a41 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_GESTURE_INTERN_H
 #define E_GESTURE_INTERN_H
 
+#include "e_intern.h"
+#include "e_gesture.h"
+
 EINTERN void e_gesture_init(void);
 EINTERN int  e_gesture_shutdown(void);
 
index b4db144f3e20920212407b8f162ffed8195c42ef..0a02a8027ada8c6f397b4b576d619e942fef3198 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_grabinput_intern.h"
 
 /* local subsystem functions */
index 3134473ba3a87243470dfaa4d610b88cb23e587f..ebfecdcce6b6a9cbc41b72cfd4c140c05fb28989 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_GRABINPUT_INTERN_H
 #define E_GRABINPUT_INTERN_H
 
+#include "e_intern.h"
+
 typedef enum _E_Focus_Method
 {
    E_FOCUS_METHOD_NO_INPUT,
index e537190a57c60bb6820115e83fb1d046c6141268..3d6bb162d1b5446eab9bed0e3c0c3e02939d0641 100644 (file)
@@ -1,6 +1,6 @@
-#include "e.h"
 #include "e_hints_intern.h"
 #include "e_scale_intern.h"
+#include "e_utils_intern.h"
 
 static Eina_List *aux_hints_supported = NULL;
 
index 0daa9618c14603f67737aa6c01d48c05aa62339e..5144f0c0236999c4a223857cd68efa6bf4e5014f 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_HINTS_INTERN_H
 #define E_HINTS_INTERN_H
 
+#include "e_intern.h"
+#include "e_hints.h"
+
 EINTERN void             e_hints_scale_update(void);
 EINTERN const Eina_List *e_hints_aux_hint_supported_get(void);
 EINTERN Eina_Bool        e_hints_aux_hint_change(E_Client *ec, int32_t id, const char *val);
index efaf65872c9ce387ac9cf428f40eedde81f6217f..575377aad09001f39c5e0c4f8574f116844f7094 100644 (file)
@@ -1,11 +1,12 @@
-#include "e.h"
 #include "e_hwc_window_intern.h"
 #include "e_hwc_windows_intern.h"
+#include "e_hwc_planes_intern.h"
 #include "e_hwc_intern.h"
 #include "e_utils_intern.h"
 #include "e_comp_screen_intern.h"
 #include "e_comp_intern.h"
 #include "e_error_intern.h"
+#include "e_hwc_window_queue_intern.h"
 
 #include <Evas_GL.h>
 #include <gbm.h>
index df14bb6034666ab860de0fce4f4e52261d0e3449..0fe2558b3af4202098e8856cd51478c20931eebd 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_HWC_INTERN_H
 #define E_HWC_INTERN_H
 
+#include "e_intern.h"
+#include "e_hwc.h"
+
 struct _E_Hwc_Hook
 {
    EINA_INLIST;
index a654f4fcd31603b89d594a1fc8aebf926badd6ff..2a33df2e1045e4ab19f212283239c5606fab038b 100644 (file)
@@ -1,4 +1,4 @@
-#include "e.h"
+#include "e_hwc_planes_intern.h"
 #include "e_comp_screen_intern.h"
 #include "e_comp_intern.h"
 #include "services/e_service_quickpanel_intern.h"
@@ -7,6 +7,7 @@
 #include "e_policy_private_data.h"
 #include "e_client_intern.h"
 #include "e_comp_object_intern.h"
+#include "e_utils_intern.h"
 
 #include <wayland-tbm-server.h>
 
diff --git a/src/bin/e_hwc_planes_intern.h b/src/bin/e_hwc_planes_intern.h
new file mode 100644 (file)
index 0000000..12b4d99
--- /dev/null
@@ -0,0 +1,24 @@
+#ifndef E_HWC_PLANES_INTERN_H
+#define E_HWC_PLANES_INTERN_H
+
+#include "e_intern.h"
+
+/* used by e_hwc */
+EINTERN Eina_Bool  e_hwc_planes_init(void);
+EINTERN void       e_hwc_planes_deinit(void);
+
+EINTERN void       e_hwc_planes_end(E_Hwc *hwc, const char *location);
+EINTERN void       e_hwc_planes_client_end(E_Hwc *hwc, E_Client *ec, const char *location);
+EINTERN void       e_hwc_planes_apply(E_Hwc *hwc);
+
+EINTERN void       e_hwc_planes_multi_plane_set(E_Hwc *hwc, Eina_Bool set);
+EINTERN Eina_Bool  e_hwc_planes_multi_plane_get(E_Hwc *hwc);
+
+EINTERN Eina_Bool  e_hwc_planes_mirror_set(E_Hwc *hwc, E_Hwc *src_hwc, Eina_Rectangle *rect);
+EINTERN void       e_hwc_planes_mirror_unset(E_Hwc *hwc);
+EINTERN Eina_Bool  e_hwc_planes_presentation_update(E_Hwc *hwc, E_Client *ec);
+EINTERN Eina_Bool  e_hwc_planes_external_commit(E_Hwc *hwc);
+
+EINTERN Eina_Bool  e_hwc_planes_ecore_evas_set(E_Hwc *hwc, Ecore_Evas *ee);
+
+#endif
index aa15b23ec911823a82fad36b316b961d37af3987..b31638e4431a3fbb751a06f60c83180fd48d676b 100644 (file)
@@ -1,7 +1,7 @@
-#include "e.h"
 #include "e_hwc_window_intern.h"
 #include "e_hwc_windows_intern.h"
 #include "e_hwc_intern.h"
+#include "e_hwc_window_queue_intern.h"
 #include "e_comp_wl_buffer_intern.h"
 #include "e_comp_wl_intern.h"
 #include "e_comp_wl_subsurface_intern.h"
 #include "e_client_video_intern.h"
 #include "e_client_intern.h"
 #include "e_comp_object_intern.h"
+#include "e_utils_intern.h"
 
-# include <pixman.h>
-# include <wayland-tbm-server.h>
+#include <pixman.h>
+#include <wayland-tbm-server.h>
 #include <presentation-time-server-protocol.h>
 
 #ifndef CLEAR
index 88c05efeeebe34a8b0b7ad852fd1ce2bb2c62f48..759c619ca27bde427f18c0bc4298ea8d0d696d92 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_HWC_WINDOW_INTERN_H
 #define E_HWC_WINDOW_INTERN_H
 
+#include "e_intern.h"
+#include "e_hwc_window.h"
+
 #define E_HWC_WINDOW_TYPE (int)0xE0b11003
 #define E_HWC_WINDOW_ZPOS_NONE -999
 
index 9dfe55204462da76edd84a9522f6db8b408f3f20..c2da6811b9fdcb90e0ee7d58353bb190f46c042c 100644 (file)
@@ -1,4 +1,4 @@
-#include "e.h"
+#include "e_hwc_window_queue_intern.h"
 #include "e_comp_wl_buffer_intern.h"
 #include "e_comp_wl_intern.h"
 #include "e_comp_wl_renderer_intern.h"
diff --git a/src/bin/e_hwc_window_queue_intern.h b/src/bin/e_hwc_window_queue_intern.h
new file mode 100644 (file)
index 0000000..7425297
--- /dev/null
@@ -0,0 +1,104 @@
+#ifndef E_HWC_WINDOW_QUEUE_INTERN_H
+#define E_HWC_WINDOW_QUEUE_INTERN_H
+
+#include "e_intern.h"
+#include "e_hwc_window_intern.h"
+
+#include <Eldbus.h>
+#include <wayland-server.h>
+
+#define E_HWC_WINDOW_QUEUE_TYPE (int)0xE0b11004
+#define E_HWC_WINDOW_QUEUE_BUFFER_FLAGS 7777
+
+typedef enum _E_Hwc_Window_Queue_Type
+{
+   E_HWC_WINDOW_QUEUE_TYPE_NONE = 0,
+   E_HWC_WINDOW_QUEUE_TYPE_TBM_SURFACE_QUEUE,
+   E_HWC_WINDOW_QUEUE_TYPE_GBM_SURFACE,
+} E_Hwc_Window_Queue_Type;
+
+typedef enum _E_Hwc_Window_Queue_State
+{
+   E_HWC_WINDOW_QUEUE_STATE_UNSET = 0,
+   E_HWC_WINDOW_QUEUE_STATE_UNSET_WAITING,
+   E_HWC_WINDOW_QUEUE_STATE_SET,
+   E_HWC_WINDOW_QUEUE_STATE_SET_WAITING_WAIT_USABLE,  /* waiting state until the wait_usable request comes */
+   E_HWC_WINDOW_QUEUE_STATE_SET_WAITING_BUFFER,       /* waiting state until the exported buffer comes */
+   E_HWC_WINDOW_QUEUE_STATE_SET_WAITING_DEQUEUEABLE,  /* waiting state until the dequeueable buffer gets */
+   E_HWC_WINDOW_QUEUE_STATE_SET_INVALID,
+} E_Hwc_Window_Queue_State;
+
+struct _E_Hwc_Window_Queue
+{
+   E_Object                          e_obj_inherit;
+
+   E_Hwc                            *hwc;
+   tbm_surface_queue_h               tqueue;
+   void                             *gsurface;
+   Eina_List                        *buffers;
+   struct wl_signal                  destroy_signal;
+
+   E_Hwc_Window                     *user;
+   E_Hwc_Window                     *user_waiting_unset;
+   Eina_List                        *user_pending_set;
+   E_Hwc_Window_Queue_State          state;
+
+   Eina_Bool                         is_target;
+
+   int                               width;
+   int                               height;
+   tbm_format                        format;
+
+   E_Hwc_Window_Queue_Type           type;
+};
+
+struct _E_Hwc_Window_Queue_Buffer
+{
+   E_Hwc_Window_Queue            *queue;
+   E_Hwc_Window                  *user;
+   tbm_surface_h                  tsurface;
+   void                          *gbo;
+
+   struct wl_resource            *exported_wl_buffer;
+   struct wl_listener             exported_destroy_listener;
+   Eina_Bool                      exported;
+   Eina_Bool                      usable;
+   Eina_Bool                      released;
+   Eina_Bool                      acquired;
+   Eina_Bool                      dequeued;
+   Eina_Bool                      reseted;
+   Eina_Bool                      copying;
+
+   int                            busy;
+
+   struct wl_signal               destroy_signal;
+};
+
+EINTERN Eina_Bool e_hwc_window_queue_init(void);
+EINTERN void      e_hwc_window_queue_deinit(void);
+
+EINTERN E_Hwc_Window_Queue *e_hwc_window_queue_target_tbm_surface_queue_set(E_Hwc_Window *hwc_window, tbm_surface_queue_h tqueue);
+EINTERN E_Hwc_Window_Queue *e_hwc_window_queue_target_gbm_surface_set(E_Hwc_Window *hwc_window, void *gbm_surface, int width, int height, int format);
+
+EINTERN E_Hwc_Window_Queue *e_hwc_window_queue_user_set(E_Hwc_Window *hwc_window);
+EINTERN void                e_hwc_window_queue_user_unset(E_Hwc_Window_Queue *queue, E_Hwc_Window *hwc_window);
+
+EINTERN E_Hwc_Window_Queue *e_hwc_window_queue_get(tbm_surface_queue_h tqueue);
+
+EINTERN E_Hwc_Window_Queue_Buffer *e_hwc_window_queue_buffer_find(E_Hwc_Window_Queue *queue, tbm_surface_h tsurface);
+EINTERN Eina_Bool                  e_hwc_window_queue_buffer_can_dequeue(E_Hwc_Window_Queue *queue);
+EINTERN E_Hwc_Window_Queue_Buffer *e_hwc_window_queue_buffer_dequeue(E_Hwc_Window_Queue *queue);
+EINTERN Eina_Bool                  e_hwc_window_queue_buffer_enqueue(E_Hwc_Window_Queue *queue, E_Hwc_Window_Queue_Buffer *queue_buffer);
+EINTERN E_Hwc_Window_Queue_Buffer *e_hwc_window_queue_buffer_acquire(E_Hwc_Window_Queue *queue);
+EINTERN Eina_Bool                  e_hwc_window_queue_buffer_release(E_Hwc_Window_Queue *queue, E_Hwc_Window_Queue_Buffer *queue_buffer);
+EINTERN void                       e_hwc_window_queue_buffer_reference(E_Hwc_Window_Queue_Buffer_Ref *ref, E_Hwc_Window_Queue_Buffer *buffer);
+
+EINTERN Eina_List *e_hwc_window_queue_acquirable_buffers_get(E_Hwc_Window_Queue *queue);
+EINTERN int        e_hwc_window_queue_size_get(E_Hwc_Window_Queue *queue);
+
+EINTERN E_Hwc_Window_Queue_Type     e_hwc_window_queue_type_get(E_Hwc_Window_Queue *queue);
+
+EINTERN void                        e_hwc_window_queue_trace_debug(Eina_Bool onoff);
+EINTERN void                        e_hwc_window_queue_debug_info_get(Eldbus_Message_Iter *iter);
+
+#endif
index 5d6bd53f7dfc0b407b629ee633ebb2b8136fe477..59f2f2b1d5d5e301ea4a93938c238a2f75b24657 100644 (file)
@@ -1,7 +1,7 @@
-#include "e.h"
 #include "e_hwc_window_intern.h"
 #include "e_hwc_windows_intern.h"
 #include "e_hwc_intern.h"
+#include "e_hwc_window_queue_intern.h"
 #include "e_comp_screen_intern.h"
 #include "e_explicit_sync_intern.h"
 #include "e_comp_wl_tbm_intern.h"
@@ -13,6 +13,7 @@
 #include "e_client_video_intern.h"
 #include "e_client_intern.h"
 #include "e_comp_object_intern.h"
+#include "e_utils_intern.h"
 
 # include <Evas_Engine_GL_Tbm.h>
 # include <Evas_Engine_Software_Tbm.h>
index 25da759e8ec082c8acf16484162da5b9314ba1e5..45a088b5e657ee891bae8d17f156e353fe43c305 100644 (file)
@@ -1,6 +1,11 @@
 #ifndef E_HWC_WINDOWS_INTERN_H
 #define E_HWC_WINDOWS_INTERN_H
 
+#include "e_intern.h"
+#include "e_hwc_windows.h"
+
+#include <Eldbus.h>
+
 typedef struct _E_Hwc_Windows_Commit_Data  E_Hwc_Windows_Commit_Data;
 
 typedef enum
index f7fc2ff66a10576f9fdc74d4a25ff3884e9425b3..6a980ac17bdd206f3a32e5ff47116d24a2818fd4 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_icon_intern.h"
 
 //#define USE_ICON_CACHE
index d2bc87dddbae187ee5bbb73dc7613844b742a4c4..46a53303795d18fe8a25db526368ef1a86ad6187 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_ICON_INTERN_H
 #define E_ICON_INTERN_H
 
+#include "e_intern.h"
+
 EINTERN int e_icon_init(void);
 EINTERN int e_icon_shutdown(void);
 
index 91cfe5eb7f95b300720db850b6ae9c36cedc92a1..97ed76f067638d8bac9a287e92e639a7b0944641 100644 (file)
@@ -1,11 +1,14 @@
-#include "e.h"
 #include "e_info_shared_types.h"
 #include "e_hwc_window_intern.h"
 #include "e_hwc_windows_intern.h"
+#include "e_input_intern.h"
 
 #include <time.h>
 #include <dirent.h>
 #include <sys/mman.h>
+#include <ctype.h>
+
+#include <Eldbus.h>
 
 typedef void (*E_Info_Message_Cb)(const Eldbus_Message *msg);
 
index d8e21fc4e0415d644a42a7e209c4343a9bcc4eab..ca7439e75ce010c956b6b555b5f691c89bd0ff45 100644 (file)
@@ -1,6 +1,8 @@
-#include "e.h"
 #include "e_info_protocol_intern.h"
 
+#include <ctype.h>
+# include <fcntl.h>
+
 static E_Info_Rule_Checker *rc = NULL;
 
 // should be increasing order for binary search
index 46ba8eb6452c344f75dde2d36cd3849fd76986ef..279b6c8a16979b2be94d9c245e22312833cb6312 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _E_INFO_PROTOCOL_H_
 #define _E_INFO_PROTOCOL_H_
 
+#include "e_intern.h"
+
 #define STRING_MAX 64
 #define MAX_RULE   64
 
index 8a10fd34be5db267d60849e9f95fde9192ff6a04..43fe9ec190496aa2ef43156c1c7c02a12e18006e 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_info_server_intern.h"
 #include "e_utils_intern.h"
 #include "e_comp_object.h"
 #include "e_desk_area_intern.h"
 #include "e_desk_intern.h"
 #include "e_zone_intern.h"
+#include "e_screensaver_intern.h"
+#include "e_comp_wl_input_intern.h"
+#include "e_main_intern.h"
+#include "e_dbus_conn_intern.h"
+#include "e_hints_intern.h"
 
 #include <tbm_bufmgr.h>
 #include <tbm_surface.h>
index c8913f01e8bfc7c4c170b88f8641dedf56e96518..2ab252183a8906bf314ee7eab3de516a98aedbd9 100644 (file)
@@ -1,10 +1,13 @@
-#include "e.h"
 #include "e_info_server_input_intern.h"
 #include "e_info_shared_types.h"
 #include "e_input_log.h"
 #include "e_comp_screen_intern.h"
 #include "e_output_intern.h"
+#include "e_input_intern.h"
+#include "e_comp_wl_input_intern.h"
+#include "e_utils_intern.h"
 
+# include <fcntl.h>
 #include <linux/uinput.h>
 
 #ifndef KEY_LIGHTS_TOGGLE
index d407f818d97e040357444fcd6e7ea58525d9f5ea..ef0cd28cfee7fa751c3fc06e53d1c84de3078afc 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_INFO_SERVER_INPUT_INTERN_H
 #define E_INFO_SERVER_INPUT_INTERN_H
 
+#include "e_intern.h"
+#include "e_info_server_input.h"
+
 #define INPUT_ARG_NAME    "input"
 
 EINTERN char *e_info_server_input_log_enable_set(int state);
index 8571d229802f3e94b393a300c75cf6d5b0ada48c..6a464fbd532f6e618c3c1ebe4bbdfd2576c2c16f 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_INFO_SERVER_INTERN_H
 #define E_INFO_SERVER_INTERN_H
 
+#include "e_intern.h"
+#include "e_info_server.h"
+
 #define WL_HIDE_DEPRECATED
 #include <wayland-server.h>
 
index 470017b85eee8509686e28b21324adb03af20784..7ffb9e45f6962b00199338886abf7dd540be78e1 100644 (file)
@@ -1,9 +1,9 @@
-#include "e.h"
 #include "e_input_intern.h"
 #include "e_input_log.h"
 #include "e_comp_screen_intern.h"
 #include "e_comp_wl_input_intern.h"
 #include "e_comp_wl_intern.h"
+#include "e_utils_intern.h"
 
 #include <Ecore_Input_Evas.h>
 #include <cpu-boosting.h>
index 9fd71b79b2d57586a0bb1c70ff4a02eb033f3906..6f1b10886a3f7a5678b3550888c05bbb850a0294 100644 (file)
@@ -1,10 +1,13 @@
-#include "e.h"
 #include "e_input_intern.h"
 #include "e_input_log.h"
 #include "e_comp_screen_intern.h"
 #include "e_output_intern.h"
+#include "e_utils_intern.h"
 
 #include <Eeze.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
 
 /* e_input_device private variable */
 static Eina_List *einput_devices;
index 1aa2ca181112fbcb9bb780ce83b5c0eb2e2ab277..b313af171cd39da7e7d3af27341945912a1b7088 100644 (file)
@@ -1,15 +1,15 @@
-#include "e.h"
 #include "e_input_intern.h"
 #include "e_input_log.h"
-#include "e_device_intern.h"
-#include "e_keyrouter_private.h"
 #include "e_input_event.h"
+#include "e_keyrouter_intern.h"
 #include "e_devicemgr_intern.h"
+#include "e_device_intern.h"
 #include "e_comp_screen_intern.h"
 #include "e_output_intern.h"
 
-#include <glib.h>
 #include <Eeze.h>
+#include <glib.h>
+#include <ctype.h>
 
 #define G_LIST_GET_DATA(list) ((list) ? (((GList *)(list))->data) : NULL)
 
index 0e2f711da808765ed8933c6583fdd6414ded33d7..b2e5ec384934fe86fee40a23e9b983aec12de47f 100755 (executable)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_input_event_intern.h"
 
 #include <stdio.h>
index 4f3e2b7c1aa084fd211bc0f7a8e04351528875ce..bc0bebae0925e4605f6a5647f2d1e0048ac19a57 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_INPUT_EVENT_INTERN_H
 #define E_INPUT_EVENT_INTERN_H
 
+#include "e_intern.h"
+#include "e_input_event.h"
+
 EINTERN E_Input_Event_Source *e_input_event_source_create();
 EINTERN void                  e_input_event_source_destroy(E_Input_Event_Source *source);
 
index b8bb27998ca01540df122dc61ad8ce663746c770..f22f2003aadcd8e4909fa42162a8d361f7aaa9bd 100644 (file)
@@ -1,10 +1,10 @@
-#include "e.h"
 #include "e_devicemgr_intern.h"
 #include "e_input_intern.h"
 #include "e_input_log.h"
 #include "e_input_event_intern.h"
 #include "e_keyrouter_intern.h"
 #include "e_comp_wl_intern.h"
+#include "e_config_intern.h"
 
 #include <glib.h>
 
index 8a45e67e3265c1cf79fff4160b4c1e824ed3fda5..9383782ca8beeee00450246ce227dde9545bb278 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_INPUT_INTERN_H
 #define E_INPUT_INTERN_H
 
+#include "e_intern.h"
+#include "e_input.h"
 #include "e_device_intern.h"
 
 #include <libinput.h>
index bdaf1433fb100092165d086cf1ebc68644ab0bbe..fdbfef5e8902838881d0d8885c194732ad895712 100644 (file)
@@ -1,7 +1,3 @@
-#ifdef E_TYPEDEFS
-
-#else
-
 #ifndef E_INPUT_PRIVIATES_H
 #define E_INPUT_PRIVIATES_H
 
@@ -27,4 +23,3 @@ extern int _e_input_log_dom;
 #define EIDBG(msg, ARG...) DBG("[%s:%d] "msg, __FUNCTION__, __LINE__, ##ARG)
 
 #endif
-#endif
diff --git a/src/bin/e_intern.h b/src/bin/e_intern.h
new file mode 100644 (file)
index 0000000..895aa80
--- /dev/null
@@ -0,0 +1,264 @@
+#ifndef E_INTERN_H
+#define E_INTERN_H
+
+# ifdef HAVE_CONFIG_H
+#  include "config.h"
+# endif
+
+#include "e_types.h"
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <string.h>
+#include <assert.h>
+
+#ifdef ENABLE_TTRACE
+#include <ttrace.h>
+#endif
+
+#include <Ecore.h>
+#include <Eina.h>
+
+#ifdef ENABLE_TTRACE
+#undef TRACE_DS_BEGIN
+#undef TRACE_DS_END
+#undef TRACE_INPUT_BEGIN
+#undef TRACE_INPUT_END
+#define TRACE_DS_BEGIN(NAME, ...) traceBegin(TTRACE_TAG_WINDOW_MANAGER, "DS:"#NAME, ##__VA_ARGS__)
+#define TRACE_DS_END()            traceEnd(TTRACE_TAG_WINDOW_MANAGER)
+#define TRACE_DS_ASYNC_BEGIN(KEY, NAME, ...) traceAsyncBegin(TTRACE_TAG_WINDOW_MANAGER, KEY, "DS:"#NAME, ##__VA_ARGS__)
+#define TRACE_DS_ASYNC_END(KEY, NAME, ...)   traceAsyncEnd(TTRACE_TAG_WINDOW_MANAGER, KEY, "DS:"#NAME,  ##__VA_ARGS__)
+#define TRACE_DS_MARK(NAME, ...) traceMark(TTRACE_TAG_WINDOW_MANAGER, "DS:"#NAME, ##__VA_ARGS__)
+#define TRACE_INPUT_BEGIN(NAME, ...) traceBegin(TTRACE_TAG_INPUT, "INPUT:SERVER:"#NAME, ##__VA_ARGS__)
+#define TRACE_INPUT_END()            traceEnd(TTRACE_TAG_INPUT)
+#else
+#define TRACE_DS_BEGIN(NAME, ...)
+#define TRACE_DS_END()
+#define TRACE_DS_ASYNC_BEGIN(KEY, NAME, ...)
+#define TRACE_DS_ASYNC_END(KEY, NAME, ...)
+#define TRACE_DS_MARK(NAME, ...)
+#define TRACE_INPUT_BEGIN(NAME, ...)
+#define TRACE_INPUT_END()
+#endif
+
+# ifdef E_API
+#  undef E_API
+# endif
+# ifdef WIN32
+#  ifdef BUILDING_DLL
+#   define E_API __declspec(dllexport)
+#  else
+#   define E_API __declspec(dllimport)
+#  endif
+# else
+#  ifdef __GNUC__
+#   if __GNUC__ >= 4
+/* BROKEN in gcc 4 on amd64 */
+#    if 0
+#     pragma GCC visibility push(hidden)
+#    endif
+#    define E_API __attribute__ ((visibility("default")))
+#   else
+#    define E_API
+#   endif
+#  else
+#   define E_API
+#  endif
+# endif
+
+# ifdef EINTERN
+#  undef EINTERN
+# endif
+# ifdef __GNUC__
+#  if __GNUC__ >= 4
+#   define EINTERN __attribute__ ((visibility("hidden")))
+#  else
+#   define EINTERN
+#  endif
+# else
+#  define EINTERN
+# endif
+
+#include "e_log_intern.h"
+
+/* convenience macro to compress code and avoid typos */
+#ifndef MAX
+# define MAX(x, y) (((x) > (y)) ? (x) : (y))
+#endif
+
+#ifndef MIN
+# define MIN(x, y) (((x) < (y)) ? (x) : (y))
+#endif
+
+# define E_FREE_FUNC(_h, _fn) do { if (_h) { _fn((void*)_h); _h = NULL; } } while (0)
+# define E_INTERSECTS(x, y, w, h, xx, yy, ww, hh) \
+  (((x) < ((xx) + (ww))) && ((y) < ((yy) + (hh))) && (((x) + (w)) > (xx)) && (((y) + (h)) > (yy)))
+# define E_INSIDE(x, y, xx, yy, ww, hh) \
+  (((x) < ((xx) + (ww))) && ((y) < ((yy) + (hh))) && ((x) >= (xx)) && ((y) >= (yy)))
+# define E_CONTAINS(x, y, w, h, xx, yy, ww, hh) \
+  (((xx) >= (x)) && (((x) + (w)) >= ((xx) + (ww))) && ((yy) >= (y)) && (((y) + (h)) >= ((yy) + (hh))))
+# define E_SPANS_COMMON(x1, w1, x2, w2) \
+  (!((((x2) + (w2)) <= (x1)) || ((x2) >= ((x1) + (w1)))))
+# define E_REALLOC(p, s, n)   p = (s *)realloc(p, sizeof(s) * n)
+# define E_NEW(s, n)          (s *)calloc(n, sizeof(s))
+# define E_NEW_RAW(s, n)      (s *)malloc(n * sizeof(s))
+# define E_FREE(p)            do { free(p); p = NULL; } while (0)
+# define E_FREE_LIST(list, free)    \
+  do                                \
+    {                               \
+       void *_tmp_;                 \
+       EINA_LIST_FREE(list, _tmp_) \
+         {                          \
+            free(_tmp_);            \
+         }                          \
+    }                               \
+  while (0)
+
+# define E_LIST_REVERSE_FREE(list, data)         \
+  for (data = eina_list_last_data_get(list);          \
+       list;                                     \
+       list = eina_list_remove_list(list, eina_list_last(list)), \
+       data = eina_list_last_data_get(list))
+
+# define E_LIST_FOREACH(list, func)    \
+  do                                \
+    {                               \
+       void *_tmp_;                 \
+       const Eina_List *_list, *_list2;  \
+       EINA_LIST_FOREACH_SAFE(list, _list, _list2, _tmp_) \
+         {                          \
+            func(_tmp_);            \
+         }                          \
+    }                               \
+  while (0)
+
+# define E_LIST_HANDLER_APPEND(list, type, callback, data) \
+  do \
+    { \
+       Ecore_Event_Handler *_eh; \
+       _eh = ecore_event_handler_add(type, (Ecore_Event_Handler_Cb)callback, data); \
+       assert(_eh); \
+       list = eina_list_append(list, _eh); \
+    } \
+  while (0)
+
+# define E_LIST_HANDLER_PREPEND(list, type, callback, data) \
+  do \
+    { \
+       Ecore_Event_Handler *_eh; \
+       _eh = ecore_event_handler_prepend(type, (Ecore_Event_Handler_Cb)callback, data); \
+       assert(_eh); \
+       list = eina_list_append(list, _eh); \
+    } \
+  while (0)
+
+#define E_LIST_HOOK_APPEND(list, type, callback, data) \
+  do \
+    { \
+       E_Client_Hook *_ch; \
+       _ch = e_client_hook_add(type, callback, data); \
+       assert(_ch); \
+       list = eina_list_append(list, _ch); \
+    } \
+  while (0)
+
+# define E_COMP_WL_HOOK_APPEND(list, type, callback, data) \
+  do \
+    { \
+       E_Comp_Wl_Hook *_cwh; \
+       _cwh = e_comp_wl_hook_add(type, callback, data); \
+       assert(_cwh); \
+       list = eina_list_append(list, _cwh); \
+    } \
+  while (0)
+
+# define E_COMP_COMP_HOOK_APPEND(list, type, callback, data) \
+  do \
+    { \
+       E_Comp_Object_Hook *_coh; \
+       _coh = e_comp_object_hook_add(type, callback, data); \
+       assert(_coh); \
+       list = eina_list_append(list, _coh); \
+    } \
+  while (0)
+
+#define E_COMP_OBJECT_INTERCEPT_HOOK_APPEND(list, type, callback, data) \
+  do \
+    { \
+       E_Comp_Object_Intercept_Hook *_coih; \
+       _coih = e_comp_object_intercept_hook_add(type, callback, data); \
+       assert(_coih); \
+       list = eina_list_append(list, _coih); \
+    } \
+  while (0)
+
+#define E_CLIENT_HOOK_APPEND(list, type, callback, data) \
+  do \
+    { \
+       E_Client_Hook *_ch; \
+       _ch = e_client_hook_add(type, callback, data); \
+       assert(_ch); \
+       list = eina_list_append(list, _ch); \
+    } \
+  while (0)
+
+#define E_OUTPUT_HOOK_APPEND(list, type, callback, data) \
+  do \
+    { \
+       E_Output_Hook *_oh; \
+       _oh = e_output_hook_add(type, callback, data); \
+       assert(_oh); \
+       list = eina_list_append(list, _oh); \
+    } \
+  while (0)
+
+#define E_PIXMAP_HOOK_APPEND(list, type, callback, data) \
+  do \
+    { \
+       E_Pixmap_Hook *_ph; \
+       _ph = e_pixmap_hook_add(type, callback, data); \
+       assert(_ph); \
+       list = eina_list_append(list, _ph); \
+    } \
+  while (0)
+
+#define E_DESK_HOOK_APPEND(list, type, callback, data) \
+  do \
+    { \
+       E_Desk_Hook *_ph; \
+       _ph = e_desk_hook_add(type, callback, data); \
+       assert(_ph); \
+       list = eina_list_append(list, _ph); \
+    } \
+  while (0)
+
+# define E_CLAMP(x, min, max) (x < min ? min : (x > max ? max : x))
+# define E_RECTS_CLIP_TO_RECT(_x, _y, _w, _h, _cx, _cy, _cw, _ch) \
+  {                                                               \
+     if (E_INTERSECTS(_x, _y, _w, _h, _cx, _cy, _cw, _ch))        \
+       {                                                          \
+          if ((int)_x < (int)(_cx))                               \
+            {                                                     \
+               _w += _x - (_cx);                                  \
+               _x = (_cx);                                        \
+               if ((int)_w < 0) _w = 0;                           \
+            }                                                     \
+          if ((int)(_x + _w) > (int)((_cx) + (_cw)))              \
+            _w = (_cx) + (_cw) - _x;                              \
+          if ((int)_y < (int)(_cy))                               \
+            {                                                     \
+               _h += _y - (_cy);                                  \
+               _y = (_cy);                                        \
+               if ((int)_h < 0) _h = 0;                           \
+            }                                                     \
+          if ((int)(_y + _h) > (int)((_cy) + (_ch)))              \
+            _h = (_cy) + (_ch) - _y;                              \
+       }                                                          \
+     else                                                         \
+       {                                                          \
+          _w = 0; _h = 0;                                         \
+       }                                                          \
+  }
+
+#endif
index 44ae9d836c9651a7c4aa9d3fccb21fc00ece3fd1..5fb34d635887fb9cd53cddc73c5b5066e0c3a86e 100644 (file)
@@ -1,9 +1,9 @@
-#include "e.h"
-#include "e_keyrouter.h"
-#include "e_keyrouter_private.h"
-#include "e_input_event.h"
+#include "e_keyrouter_intern.h"
+#include "e_input_intern.h"
+#include "e_input_event_intern.h"
 #include "e_comp_wl_input_intern.h"
 #include "e_comp_wl_intern.h"
+#include "e_info_server_intern.h"
 
 #include <glib.h>
 
index 8e4b7be4a8889b840485b88446af67c3e99f7ec4..43be589e2fca4d7d6188c3c67d34773379b516cd 100644 (file)
@@ -1,4 +1,5 @@
-#include "e_keyrouter_private.h"
+#include "e_keyrouter_intern.h"
+#include "e_config_intern.h"
 
 void
 e_keyrouter_conf_init(E_Keyrouter_Config_Data *kconfig)
index 2a24d386e89dab9546c35abfb56871c811a5c195..b73bdcb773645bae431c7d0eac726e7f426e85f9 100644 (file)
@@ -1,7 +1,10 @@
-#include "e_keyrouter_private.h"
 #include "e_keyrouter_intern.h"
+#include "e_input_intern.h"
 #include "e_comp_wl_input_intern.h"
 #include "e_comp_wl_intern.h"
+#include "e_utils_intern.h"
+#include "e_screensaver_intern.h"
+#include "e_config_intern.h"
 
 static void _e_keyrouter_send_key_events(int type, Ecore_Event_Key *ev, E_Device *dev);
 static void _e_keyrouter_send_key_events_press(int type, Ecore_Event_Key *ev, E_Device *dev);
index 3f9f315068df4e0fe551864895543358cd88361d..8335b77b5088a19f3932ea645c56ff152bb9582b 100644 (file)
@@ -1,6 +1,16 @@
 #ifndef E_KEYROUTER_INTERN_H
 #define E_KEYROUTER_INTERN_H
 
+#include "e_intern.h"
+#include "e_keyrouter.h"
+
+#ifdef HAVE_CYNARA
+#include <cynara-session.h>
+#include <cynara-client.h>
+#include <cynara-creds-socket.h>
+#include <sys/smack.h>
+#endif
+
 extern EINTERN int E_KEYROUTER_EVENT_KEY_LONG;
 extern EINTERN int E_KEYROUTER_EVENT_KEY_COMPOSITION_PRESS;
 extern EINTERN int E_KEYROUTER_EVENT_KEY_COMPOSITION_RELEASE;
index 865bf64ef76aab435f17c47f57502f6a5f942c25..be0126590d4a34d5456d21d7070c1ae38351168e 100644 (file)
@@ -1,4 +1,4 @@
-#include "e_keyrouter_private.h"
+#include "e_keyrouter_intern.h"
 
 static int _e_keyrouter_find_duplicated_client(struct wl_resource *surface, struct wl_client *wc, uint32_t key, uint32_t mode);
 static Eina_Bool _e_keyrouter_find_key_in_list(struct wl_resource *surface, struct wl_client *wc, int key, int mode);
index 83f2a19efb781bcfe47c372c59fd4975a01dd204..f823226999191fc80f7bcb0e31e228cf315d92cc 100644 (file)
@@ -1,7 +1,9 @@
-#include "e_keyrouter_private.h"
+#include "e_keyrouter_intern.h"
+#include "e_input_intern.h"
 #include "e_comp_wl_input_intern.h"
 #include "e_comp_wl_intern.h"
 #include "e_client_intern.h"
+#include "e_config_intern.h"
 
 void
 e_keyrouter_wl_event_surface_send(struct wl_resource *surface, int key, int mode)
index 5d4d20df98d7102c9108f04ecf239b1ac0b521ce..34ce13a12dd8dce6a6de54b645fcb42c79431df4 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_layout_intern.h"
 
 /* FIXME: something is weird here - i had to reverse all stacking logic to make
index 0c8b953c5242f52e0d8f0d1051296394e918a1cd..ba7529400897d5e51abf5bbb4389d53fc1d88f52 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_LAYOUT_INTERN_H
 #define E_LAYOUT_INTERN_H
 
+#include "e_intern.h"
+#include "e_layout.h"
+
 EINTERN int          e_layout_freeze            (Evas_Object *obj);
 EINTERN int          e_layout_thaw              (Evas_Object *obj);
 EINTERN void         e_layout_virtual_size_get  (Evas_Object *obj, Evas_Coord *w, Evas_Coord *h);
index 2bec23070c72957075912b28d652e565c4a2ee94..9f081b3706dab3966e22ce556e44f649998d0917 100644 (file)
@@ -1,4 +1,4 @@
-#include "e.h"
+#include "e_log_intern.h"
 
 E_API int e_log_dom = -1;
 
diff --git a/src/bin/e_log_intern.h b/src/bin/e_log_intern.h
new file mode 100644 (file)
index 0000000..4924ea7
--- /dev/null
@@ -0,0 +1,15 @@
+#ifndef E_LOG_INTERN_H
+#define E_LOG_INTERN_H
+
+#include "e_intern.h"
+#include "e_log.h"
+
+EINTERN int e_log_init(void);
+EINTERN int e_log_shutdown(void);
+
+#ifdef HAVE_DLOG
+EINTERN void e_log_dlog_enable(Eina_Bool enable);
+#endif
+EINTERN Eina_Bool e_log_path_set(const char *path);
+
+#endif
index 626e7376f3d137c4c15f7ec348e5900b0c4a9599..be479fbcc5825198291514af855b3de17ff17608 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_magnifier_intern.h"
 
 #define E_MAGNIFIER_SMART_DATA_GET(obj, ptr)                        \
index 7223f89a0c289971bcf3a2be9b0f7ea8cb0c7e07..b52a9faab1560f0afe46265fb4de519df03cb95f 100644 (file)
@@ -1,6 +1,12 @@
 # ifndef E_MAGNIFIER_INTERN_H
 # define E_MAGNIFIER_INTERN_H
 
+#include "e_intern.h"
+#include "e_client_intern.h"
+#include "e_desk_intern.h"
+
+#include <Evas.h>
+
 #define E_MAGNIFIER_SMART_OBJ_TYPE "E_Magnifier_Smart_Object"
 
 typedef enum _E_Magnifier_Zoom_Ratio
index d65428a1ec5912e5245c03fba276ea83ad6646e1..a458831626997ee84ad35f52d167ca54beea6c6f 100644 (file)
@@ -1,4 +1,4 @@
-#include "e.h"
+#include "e_main_intern.h"
 #include "e_actions_intern.h"
 #include "e_test_helper_intern.h"
 #include "e_user_intern.h"
@@ -32,6 +32,9 @@
 #include "e_client_intern.h"
 #include "e_desk_intern.h"
 #include "e_zone_intern.h"
+#include "e_eom_intern.h"
+
+#include <Eio.h>
 
 #ifdef __linux__
 # include <sys/prctl.h>
diff --git a/src/bin/e_main_intern.h b/src/bin/e_main_intern.h
new file mode 100644 (file)
index 0000000..72343cc
--- /dev/null
@@ -0,0 +1,7 @@
+#ifndef E_MAIN_INTERN_H
+#define E_MAIN_INTERN_H
+
+#include "e_intern.h"
+#include "e_main.h"
+
+#endif
index b875dee359714a31af3f00a618fbaa2223da66a6..8f3c72560d734d2a96aab1e9b1b8b59a0c466fb2 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_map_intern.h"
 
 #define E_MAP_INDEX_IN_RANGE(MAP, X) ((X >= 0) && (X < MAP->count))
index 71370aa3051459aadef5568df0ec3684dd4cc4ec..bd63e89e2d21472c2df60332b3fb71921e4d4f6d 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_MAP_INTERN_H
 #define E_MAP_INTERN_H
 
+#include "e_intern.h"
+#include "e_map.h"
+
 EINTERN Eina_Bool  e_map_set_to_comp_object(E_Map *em, Evas_Object *obj);
 EINTERN E_Map     *e_map_get_from_comp_object(const Evas_Object *obj);
 
index 3e5ab4d5eea594f293bd94bb00eafa50a4aa917f..3eec97485c5dfc04e91766428a4779ecc1ca6b9e 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_maximize_intern.h"
 #include "e_desk_intern.h"
 #include "e_zone_intern.h"
index bdc4d61043ab48c68077470f36a4c18d8fffaa6b..3c48ab38721dea81995ce99f801c96396404206c 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_MAXIMIZE_INTERN_H
 #define E_MAXIMIZE_INTERN_H
 
+#include "e_intern.h"
+
 EINTERN void e_maximize_client_shelf_fit(E_Client *ec, int *x1, int *y1, int *x2, int *y2, E_Maximize dir);
 EINTERN void e_maximize_client_dock_fit(E_Client *ec, int *x1, int *y1, int *x2, int *y2);
 EINTERN void e_maximize_client_shelf_fill(E_Client *ec, int *x1, int *y1, int *x2, int *y2, E_Maximize dir);
index dc84cb46463a67ca94f33576209eff48385de3c6..e0cc6526dc77162603ee3696683323d20dd8346c 100644 (file)
@@ -1,7 +1,10 @@
-#include "e.h"
 #include "e_module_intern.h"
 #include "e_user_intern.h"
 #include "e_utils_intern.h"
+#include "e_main_intern.h"
+
+#include <Eio.h>
+#include <dlfcn.h>
 
 /* TODO List:
  *
index 8ce9cf55a3ae4b2517cb671d477dda6f16db918d..eed7d1745d270c2a148f258ae432a943a58f3a35 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_MODULE_INTERN_H
 #define E_MODULE_INTERN_H
 
+#include "e_intern.h"
+#include "e_module.h"
+
 #define E_MODULE_TYPE 0xE0b0100b
 
 extern EINTERN int E_EVENT_MODULE_UPDATE;
index fb778d45dfa12db9fb9a837d9d2bdb5afd647b28..2f32f50114eb0825e64e06e5862c1f73b1f7a570 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_mouse_intern.h"
 #include "e_input_intern.h"
 
index 30f174afd67a1fec41fbd83351eb06351c188515..8da802d010e21f359d97407233fc54fc98bfd30f 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_MOUSE_INTERN_H
 #define E_MOUSE_INTERN_H
 
+#include "e_intern.h"
+
 EINTERN int e_mouse_update(void);
 
 #endif
index bae7e3f75cb6e44d30a0ffc8ed080379e9557fb3..43bf7fd9fcbd0185dee477efe1e3d696e27caaf1 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_msg_intern.h"
 
 typedef struct _E_Msg_Event E_Msg_Event;
index 93792e8701a5379d580cbdf51c8c26398a4793eb..0b2a93f924b27a563513cd9a67486d5b5adbb8be 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_MSG_INTERN_H
 #define E_MSG_INTERN_H
 
+#include "e_intern.h"
+
 typedef struct _E_Msg_Handler E_Msg_Handler;
 
 EINTERN int            e_msg_init(void);
index eae48b2e3316d921edff8ac29ebe03604ec5619a..dfa5639646afa4c42df02cf5573524c231a2b527 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_error_intern.h"
 
 /* yes - i know. glibc specific... but i like being able to do my own */
index 7caec926875687f24ff725369e583e15fb433248..81fa25ab95d9d403ea220af07b23e4d1a7ac937e 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_output_intern.h"
 #include "e_client_intern.h"
 #include "e_utils_intern.h"
 #include "e_error_intern.h"
 #include "e_hwc_window_intern.h"
 #include "e_hwc_windows_intern.h"
+#include "e_hwc_planes_intern.h"
 #include "e_hwc_intern.h"
 #include "e_comp_wl_video_buffer_intern.h"
 #include "e_zone_intern.h"
+#include "e_video_debug_intern.h"
 
 #include <device/board-internal.h>
 
index be80c12c0e42a5c9d6e63a8d898865d8b5262edf..f171eff16399726046f82343a923ec892277fb46 100644 (file)
@@ -1,10 +1,13 @@
 #ifndef E_OUTPUT_INTERN_H
 #define E_OUTPUT_INTERN_H
 
-#define E_OUTPUT_TYPE (int)0xE0b11002
+#include "e_intern.h"
+#include "e_output.h"
 
 #include <tbm_surface.h>
 
+#define E_OUTPUT_TYPE (int)0xE0b11002
+
 typedef struct _E_Output_Hook           E_Output_Hook;
 typedef struct _E_Output_Intercept_Hook E_Output_Intercept_Hook;
 
index 09e71b8bdb0e04a0eb7102d72538eb5f783efaa6..0dc0b95a002ec0be9712cb8deaa4859183a76ed1 100644 (file)
@@ -1,7 +1,8 @@
-#include "e.h"
 #include "e_path_intern.h"
 #include "e_user_intern.h"
 
+#include <Ecore_File.h>
+
 /* local subsystem functions */
 static void      _e_path_free(E_Path *ep);
 static void      _e_path_cache_free(E_Path *ep);
index 528a0de77767ad808eb88365199405ffb9811baf..7890abf362ad232a76e7c35f71b212e8cd38c43c 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_PATH_INTERN_H
 #define E_PATH_INTERN_H
 
+#include "e_intern.h"
+
 #define E_PATH_TYPE 0xE0b0100c
 
 typedef struct _E_Path E_Path;
index a89c6000c2e23f6b68b4698851fde39ba2da4052..cc8100d2f86a3aed4cd26e020e4e25116eee502e 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_pixmap_intern.h"
 #include "e_comp_wl_buffer_intern.h"
 #include "e_comp_wl_tbm_intern.h"
index 7502e4c00653caff87fce3104c81bc68a2234e02..edf2fe5e582adb1266c5d0888df4d45f28a1c606 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_PIXMAP_INTERN_H
 #define E_PIXMAP_INTERN_H
 
+#include "e_intern.h"
+#include "e_pixmap.h"
+
 struct _E_Pixmap_Hook
 {
    EINA_INLIST;
index bc65c6b65acac14d1f1926c8e48e12624b5efb2f..98bcfe82c848481b58d1d3b7afabb39654f4e39c 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_place_intern.h"
 #include "e_input_intern.h"
 #include "e_desk_intern.h"
index 8e7739ada5576db444d84c106f9ff5c097a47286..f3ce2fe2677ac5edf9f489b9dd2d2e9e6cfed0a8 100644 (file)
@@ -1,13 +1,12 @@
-#ifdef E_TYPEDEFS
-#else
 #ifndef E_PLACE_H
 #define E_PLACE_H
 
+#include "e_intern.h"
+
 EINTERN void e_place_zone_region_smart_cleanup(E_Zone *zone);
-EINTERN int e_place_zone_region_smart(E_Zone *zone, Eina_List *skiplist, int x, int y, int w, int h, int *rx, int *ry);
-EINTERN int e_place_desk_region_smart(E_Desk *desk, Eina_List *skiplist, int x, int y, int w, int h, int *rx, int *ry);
-EINTERN int e_place_zone_cursor(E_Zone *zone, int x, int y, int w, int h, int it, int *rx, int *ry);
-EINTERN int e_place_zone_manual(E_Zone *zone, int w, int h, int *rx, int *ry);
+EINTERN int  e_place_zone_region_smart(E_Zone *zone, Eina_List *skiplist, int x, int y, int w, int h, int *rx, int *ry);
+EINTERN int  e_place_desk_region_smart(E_Desk *desk, Eina_List *skiplist, int x, int y, int w, int h, int *rx, int *ry);
+EINTERN int  e_place_zone_cursor(E_Zone *zone, int x, int y, int w, int h, int it, int *rx, int *ry);
+EINTERN int  e_place_zone_manual(E_Zone *zone, int w, int h, int *rx, int *ry);
 
 #endif
-#endif
index cf2c29881d42bcc645a05790c7f0580295ad9f07..987155ec66991b563d901c2131859560cd7e5ff7 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_comp_canvas_intern.h"
 #include "e_comp_screen_intern.h"
 #include "e_comp_wl_intern.h"
@@ -7,6 +6,7 @@
 #include "e_comp_wl_video_buffer_intern.h"
 #include "e_client_intern.h"
 #include "e_comp_object_intern.h"
+#include "e_utils_intern.h"
 
 #include <device/board-internal.h>
 # include <tdm.h>
index f2462a8ad09aba3e74e6f54462603b3ba2dd4401..0421ca02f71a637f05aa12dd5f10910f11264d46 100644 (file)
@@ -1,4 +1,4 @@
-#include "e.h"
+
 #include "e_comp_wl_buffer_intern.h"
 #include "e_comp_canvas_intern.h"
 #include "e_comp_screen_intern.h"
index 214e0cd33c7999b3bb715c5b559162e536bf250c..180d25775a2e18597eed3f64e68caa383a26c210 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_pointer_intern.h"
 #include "e_input_intern.h"
 #include "e_client_intern.h"
index ad4e7486f20b9743f0b247a1b87384a64c6e2f57..b641dc90e61f446402f39c6037fcd542ea5e271e 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_POINTER_INTERN_H
 #define E_POINTER_INTERN_H
 
+#include "e_intern.h"
+#include "e_pointer.h"
+
 #define E_POINTER_TYPE 0xE0b01013
 
 EINTERN int        e_pointer_init(void);
index 90dff9f20a77e9a34a550434d0db5c8b6008a387..fefc5bbca4f55f450969ecb8cbb514e0d4340bc3 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_policy_intern.h"
 #include "e_policy_wl_intern.h"
 #include "e_policy_conformant_intern.h"
@@ -11,6 +10,8 @@
 #include "e_client_intern.h"
 #include "e_desk_intern.h"
 #include "e_zone_intern.h"
+#include "e_config_intern.h"
+#include "e_utils_intern.h"
 
 E_Policy *e_policy = NULL;
 Eina_Hash *hash_policy_desks = NULL;
index 07b99abdc607e644542f0ea1a27116b8b8236d69..9609eb1fc91160e95e27f689c17140ad21ddceeb 100644 (file)
@@ -1,6 +1,6 @@
-#include "e.h"
 #include "e_policy_intern.h"
 #include "e_comp_wl_intern.h"
+#include "e_config_intern.h"
 
 #include <wayland-server.h>
 #include <tizen-extension-server-protocol.h>
index 39745c97fd37223eb01344aed38464b0ae24a962..096595551d688dac28c0488d444da0e1c035b4bb 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_POLICY_CONFORMANT_INTERN_H
 #define E_POLICY_CONFORMANT_INTERN_H
 
+#include "e_intern.h"
+#include "e_policy_conformant.h"
+
 EINTERN Eina_Bool  e_policy_conformant_init(void);
 EINTERN void       e_policy_conformant_shutdown(void);
 
index 310ea6aca9c3050bc0169e83e063055917cfa731..567ad741838b08a80bfc007a739f067045f75f75 100644 (file)
@@ -1,6 +1,9 @@
 # ifndef E_POLICY_INTERN_H
 # define E_POLICY_INTERN_H
 
+#include "e_intern.h"
+#include "e_policy.h"
+
 struct _E_Policy_Interceptor
 {
    E_Policy_Intercept_Point ipoint;
index 008d2fc6f8683dd595ec3143973426337e0559c5..028bd39881da8cf12d1a43d8f8be99367e52de30 100644 (file)
@@ -1,6 +1,9 @@
-#include "e.h"
 #include "e_policy_intern.h"
 #include "e_desk_intern.h"
+#include "e_utils_intern.h"
+#include "e_prefix_intern.h"
+#include "e_theme_intern.h"
+#include "e_config_intern.h"
 
 static void         _e_policy_cb_softkey(void *data, Evas_Object *obj EINA_UNUSED, const char *emission, const char *source EINA_UNUSED);
 static void         _e_policy_softkey_iconify(E_Zone *zone, Eina_Bool all);
index 887d87e2b0a6463e552829fb754fceff0723ba6d..18c3a5480b904a5bffd9cd773c4915be00784cc5 100644 (file)
@@ -1,7 +1,7 @@
-#include "e.h"
 #include "e_policy_intern.h"
 #include "e_pixmap_intern.h"
 #include "e_client_intern.h"
+#include "e_config_intern.h"
 
 Eina_Bool
 _e_policy_stack_transient_for_check_descendant(E_Client *ec, E_Client *ancestor, E_Transient policy)
index ba926d9ab32297c957b13e262d67db023b79f895..e8a5a7a61ab330e3d119f085f0426a762c02d9c4 100644 (file)
@@ -4,7 +4,6 @@
  * background  : The client which is fully obscured by others.
  */
 
-#include "e.h"
 #include "e_policy_visibility_intern.h"
 #include "e_policy_intern.h"
 #include "e_comp_wl_rsm_intern.h"
@@ -12,6 +11,7 @@
 #include "e_policy_wl_intern.h"
 #include "e_client_intern.h"
 #include "e_comp_object_intern.h"
+#include "e_config_intern.h"
 
 #ifdef ENABLE_TTRACE
 # include <ttrace.h>
index 38d8274a7a431bebfed91a174ac19d156fb6f814..eb063e7e48c7bbdfa55e3606590ff44ed077f2d8 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef _E_POLICY_VISIBILITY_INTEN_H_
 #define _E_POLICY_VISIBILITY_INTEN_H_
 
+#include "e_intern.h"
+#include "e_policy_visibility.h"
+
 #define E_CLEAR_GRAB_TIMEOUT   0.01
 
 #define NAME(ec)        ec->icccm.name ? ec->icccm.name : ""
index c272282ed9ba926ac99b5928e06ae9b9727441df..f0c780f8e39e9b84b7c815ba9d104bb7c0b8676c 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_policy_wl_intern.h"
 #include "e_policy_intern.h"
 #include "e_appinfo_intern.h"
 #include "e_hints_intern.h"
 #include "e_comp_object_intern.h"
 #include "e_zone_intern.h"
+#include "e_config_intern.h"
+#include "e_security_intern.h"
+#include "e_utils_intern.h"
+#include "e_screensaver_intern.h"
 
 #include <device/display.h>
 #include <wayland-server.h>
index 35e43f8e32dc0351fa7adb0d01cc9a47113053b6..de27e307de7214e5447d54bc9765ab84bfbfce34 100644 (file)
@@ -1,5 +1,5 @@
-#include "e.h"
 #include "e_policy_wl_display_intern.h"
+#include "e_dbus_conn_intern.h"
 
 typedef struct _E_Display_Dbus_Info
 {
index 591fe03948c2383ece9722686ecd1cf5ebb219c1..ebb58e2769adb43f3e86c1f5752b1daa00be02e8 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_POLICY_WL_DISPLAY_H
 #define E_POLICY_WL_DISPLAY_H
 
+#include "e_intern.h"
+
 typedef enum _E_Display_Screen_Mode
 {
    E_DISPLAY_SCREEN_MODE_DEFAULT = 0,
index da98dbdfbb5e594ecc4e7410df253888d010f4a2..4f5357d12885f54b45bcee387e424c25c1005f86 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_POLICY_WL_INTERN_H
 #define E_POLICY_WL_INTERN_H
 
+#include "e_intern.h"
+#include "e_policy_wl.h"
+
 typedef struct wl_resource* (*E_Policy_Wl_Tzsh_Ext_Hook_Cb)(struct wl_client* client, struct wl_resource* res, uint32_t id);
 
 struct _E_Policy_Wl_Hook
index 79b51a7c58a807622402c889351ec23a4fa62a3e..45b26c3d85eac4c2e01d6eb5ea40fce50816ca90 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_prefix_intern.h"
 #include "e_utils_intern.h"
 
index 0fdc46f10432a9561613179d50a6a3e45bd140dd..2cd85a202c44f38d64e49b8cfce1fe04a3f766f6 100644 (file)
@@ -1,6 +1,11 @@
 #ifndef E_PREFIX_INTERN_H
 #define E_PREFIX_INTERN_H
 
+#include "e_intern.h"
+#include "e_prefix.h"
+
+#define e_prefix_data_concat_static(dst, path) e_prefix_data_concat_len(dst, sizeof(dst), path,  (sizeof(path) > 0) ? sizeof(path) - 1 : 0)
+
 EINTERN int         e_prefix_determine(char *argv0);
 EINTERN void     e_prefix_shutdown(void);
 EINTERN void        e_prefix_fallback(void);
@@ -13,6 +18,4 @@ EINTERN const char *e_prefix_lib_get(void);
 EINTERN size_t      e_prefix_data_concat_len(char *dst, size_t size, const char *path, size_t path_len);
 EINTERN size_t      e_prefix_data_concat(char *dst, size_t size, const char *path);
 
-#define e_prefix_data_concat_static(dst, path) e_prefix_data_concat_len(dst, sizeof(dst), path,  (sizeof(path) > 0) ? sizeof(path) - 1 : 0)
-
 #endif
index 68d675e3f83bfa809cdc0f346fa921c90fd612c1..d51aabd2f966817961a254bd179a95e71fee2152 100644 (file)
@@ -1,6 +1,6 @@
-#include "e.h"
 #include "e_presentation_time_intern.h"
 #include "e_client_intern.h"
+#include "e_utils_intern.h"
 
 #include <presentation-time-server-protocol.h>
 #include <tizen-extension-server-protocol.h>
index c29807499949cb7001e6cc71be992fd80b5035e1..168c8e5d63f1f433ec3865a6d6066faeb657b869 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_PRESENTATION_TIME_INTERN_H
 #define E_PRESENTATION_TIME_INTERN_H
 
+#include "e_intern.h"
+#include "e_presentation_time.h"
+
 typedef struct _E_Presentation_Time E_Presentation_Time;
 typedef struct _E_Presentation_Time_Feedback E_Presentation_Time_Feedback;
 
index 14545e81f45059b22b4cfb41e96e6f10cead0219..8ce77c43cf28a8b37ce956f8258d052e75fb5d20 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_privilege_intern.h"
 
 EINTERN const char *E_PRIVILEGE_NOTIFICATION_LEVEL_SET    = "http://tizen.org/privilege/window.priority.set";
index dc6d66582880ff94ea04daa621ac9057795bf878..77ce968eb77f1d6a27cf7833951ce55e8d141ab9 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_PRIVILEGE_INTERN_H
 #define E_PRIVILEGE_INTERN_H
 
+#include "e_intern.h"
+#include "e_privilege.h"
+
 extern EINTERN const char *E_PRIVILEGE_NOTIFICATION_LEVEL_SET;
 extern EINTERN const char *E_PRIVILEGE_SCREEN_MODE_SET;
 extern EINTERN const char *E_PRIVILEGE_BRIGHTNESS_SET;
index 0faab64c82a63aca4b95a78ecea50744e205e385..eaf1dbb0cad2d79ef213d06b87809d527d322a65 100644 (file)
@@ -1,6 +1,6 @@
-#include "e.h"
 #include "e_process_intern.h"
 #include "e_comp_wl_subsurface_intern.h"
+#include "e_client_intern.h"
 
 static E_Process *_e_process_find(E_Process_Manager *pm, pid_t pid);
 static E_Process *_e_process_new(pid_t pid);
index e7d9ace3c1df66fb42e6c2977cae0c48c3ee22fb..688e0a6a50baa767f9ebc0ff46118f629c34dd7b 100644 (file)
@@ -1,6 +1,9 @@
 # ifndef E_PROCESSMGR_INTERN_H
 # define E_PROCESSMGR_INTERN_H
 
+#include "e_intern.h"
+#include "e_process.h"
+
 struct _E_Process_Hook
 {
    EINA_INLIST;
index 58bc8a4adfbd722c54a68b00b3eb343fda5d3d30..0a493df48374fdad7afe3bde922cddf07b0a3691 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_scale_intern.h"
 #include "e_utils_intern.h"
 #include "e_hints_intern.h"
index eb8dee7e1fe632ae51fc3d16edd57530fb4de435..eb74bb711b8a614e574c9bce242935b34cd3da5c 100644 (file)
@@ -1,11 +1,13 @@
 #ifndef E_SCALE_INTERN_H
 #define E_SCALE_INTERN_H
 
+#include "e_intern.h"
+
+extern EINTERN double e_scale;
+
 EINTERN int  e_scale_init(void);
 EINTERN int  e_scale_shutdown(void);
 EINTERN void e_scale_update(void);
 EINTERN void e_scale_manual_update(int dpi);
 
-extern EINTERN double e_scale;
-
 #endif
index b5cd7988e4afa119ae09d889e8b497496d7e92f8..1db105d4a99a165461bac935186795dbed992684 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_screensaver_intern.h"
 
 typedef struct _E_Screensaver
index a8cb2329721b6723fa24fe826f73df5cf4f11704..f291384ba3b52ae452b5a6c8125039f5e6454d56 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_SCREENSAVER_INTERN_H
 #define E_SCREENSAVER_INTERN_H
 
+#include "e_intern.h"
+#include "e_screensaver.h"
+
 EINTERN void      e_screensaver_preinit(void);
 EINTERN int       e_screensaver_init(void);
 EINTERN int       e_screensaver_shutdown(void);
index c58d4abba03bbd185033be8e5ed376d53a6e13a8..c78a31daa73ba947ce45944db179748fc209886c 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_security_intern.h"
 
 #ifdef HAVE_CYNARA
index 372976563c2974eb4670c2f9c24f451325b3da7e..24dc7c34b6f0a60bd7cbafdd3adbc071f718f780 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_SECURITY_INTERN_H
 #define E_SECURITY_INTERN_H
 
+#include "e_intern.h"
+#include "e_security.h"
+
 EINTERN int e_security_init(void);
 EINTERN int e_security_shutdown(void);
 
index e5664758f500e98b1da35d514ffa2b808f93bb9d..cb44106ee86b77dcb77253402af87f9426fc9e6b 100644 (file)
@@ -3,7 +3,6 @@
  * ports/devel/libexecinfo and add -lexecinfo to LDFLAGS
  * to add backtrace support.
  */
-#include "e.h"
 #include "e_signals_intern.h"
 #include "e_input_intern.h"
 
index 4e2630dd1dd1774abc270604a020836a9f0f0c4d..b6efbcdf5f3c497f39e74201a6e94e4abf7bd197 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_SIGNALS_INTERN_H
 #define E_SIGNALS_INTERN_H
 
+#include "e_intern.h"
+
 EINTERN void e_sigseg_act(int x, siginfo_t *info, void *data);
 EINTERN void e_sigill_act(int x, siginfo_t *info, void *data);
 EINTERN void e_sigfpe_act(int x, siginfo_t *info, void *data);
index 0ec059b2e176c01fb85cdeae3ee5a756504fa033..7d1c68c13376e4465c902966c42c70c58a78b6e4 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_subsurface_watcher_intern.h"
 #include "e_compositor_intern.h"
 
index 73962963229079cc6ac3f5b1d59f080598493e99..f5bf2da16dd9beb845133aca6a39cefe91e27089 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef E_SUBSURFACE_WATCHER_INTERN_H
 #define E_SUBSURFACE_WATCHER_INTERN_H
 
+#include "e_intern.h"
+
+#include <wayland-server.h>
+
 EINTERN void e_subsurface_watcher_add(struct wl_client *client, uint32_t id, struct wl_resource *surface_resource);
 EINTERN void e_subsurface_watcher_invalid_parent_notify(struct wl_resource *surface_resource);
 
index b84d3aaef98fe28bd5fbb02b2a1e59d17ad4b437..13dcdd5d386c6302df74f11b8edce93389b865cd 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_tbm_gbm_server_intern.h"
 #include "e_comp_screen_intern.h"
 #include "e_comp_wl_tbm_intern.h"
index b9fdb62bbf3f93d63b2c20a04614eeba33021ccc..69161191737d25a999ec8cf90c3eb09f3000ab64 100644 (file)
@@ -1,14 +1,14 @@
 #ifndef E_TBM_GBM_SERVER_INTERN_H
 #define E_TBM_GBM_SERVER_INTERN_H
 
-#include <Eina.h>
+#include "e_intern.h"
+
 #include <wayland-server.h>
 #include <libds/buffer.h>
-#include <tbm_surface.h>
 
 typedef struct _E_Gbm_Client_Buffer E_Gbm_Client_Buffer;
 
-EINTERN Eina_Bool e_tbm_gbm_server_init(struct wl_display *display);
+EINTERN Eina_Bool     e_tbm_gbm_server_init(struct wl_display *display);
 EINTERN tbm_surface_h e_tbm_gbm_server_tbm_surface_get_from_buffer(struct ds_buffer *ds_buffer);
 
 #endif /* end of include guard: E_TBM_GBM_SERVER_INTERN_H */
index ef6db6bf4d004378cae5b83e4f073dfcaae94cba..a0d22ae6fa187f8e6cce0accfbd5bd6371111fe0 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_test_helper_intern.h"
 #include "e_policy_wl_intern.h"
 #include "e_comp_canvas_intern.h"
@@ -8,6 +7,10 @@
 #include "e_policy_intern.h"
 #include "e_client_intern.h"
 #include "e_comp_object_intern.h"
+#include "e_dbus_conn_intern.h"
+#include "e_info_server_intern.h"
+#include "e_utils_intern.h"
+#include "e_hints_intern.h"
 
 #define BUS "org.enlightenment.wm"
 #define PATH "/org/enlightenment/wm"
index 1cf44d2d6fe800d286585d1a13304bb5072fa0d9..72462381763564958de4dafea69600b45e62a02b 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_TEST_HELPER_INTERN_H
 #define E_TEST_HELPER_INTERN_H
 
+#include "e_intern.h"
+
 EINTERN int e_test_helper_init(void);
 EINTERN int e_test_helper_shutdown(void);
 
index 762c3abba94c858c277205f26b118efa982987df..72d3185c0ab59b224ec10eb16f8bfc49e5a98299 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_theme_intern.h"
 
 /* externally accessible functions */
index 7994619a6ddda1b5bb1e4c2aaf55d69d584a2d91..f986530db322aadf70e31c3aca76e25c70078d77 100644 (file)
@@ -1,8 +1,12 @@
 #ifndef E_THEME_INTERN_H
 #define E_THEME_INTERN_H
 
+#include "e_intern.h"
+#include "e_theme.h"
+
 EINTERN int       e_theme_init(void);
 EINTERN int       e_theme_shutdown(void);
+
 EINTERN const char *e_theme_edje_file_get(const char *category, const char *group);
 
 #endif
index e6773e49835f133e0876e7662b0d854c0e45cbd6..126c1a9f7ba76107b894b0aede406be3903325a5 100644 (file)
@@ -1,4 +1,5 @@
-#include "e.h"
+#include "e_user_intern.h"
+#include "e_utils_intern.h"
 
 static char *_e_user_homedir = NULL;
 static size_t _e_user_homedir_len = 0;
@@ -115,7 +116,7 @@ e_user_dir_get(void)
           }
         else
           {
-#ifdef DOXDG             
+#ifdef DOXDG
              d = e_util_env_get("XDG_CONFIG_HOME");
              if (d)
                {
@@ -124,15 +125,15 @@ e_user_dir_get(void)
                   E_FREE(d);
                }
              else
-#endif               
+#endif
                {
-#ifdef DOXDG             
+#ifdef DOXDG
                   _e_user_dir_len = e_user_homedir_concat(dir, sizeof(dir),
                                                           ".config/e");
-#else                  
+#else
                   _e_user_dir_len = e_user_homedir_concat(dir, sizeof(dir),
                                                           ".e/e");
-#endif                  
+#endif
                }
           }
         _e_user_dir = dir;
index c252a0a60bc4313f71b0ec456c124052b84c7179..9581c63f4bcd2cdc9fe6dd524ed5915c2a3a2737 100644 (file)
@@ -1,6 +1,11 @@
 #ifndef E_USER_INTERN_H
 #define E_USER_INTERN_H
 
+#include "e_intern.h"
+
+#define e_user_homedir_concat_static(dst, path) e_user_homedir_concat_len(dst, sizeof(dst), path, (sizeof(path) > 0) ? sizeof(path) - 1 : 0)
+#define e_user_dir_concat_static(dst, path) e_user_dir_concat_len(dst, sizeof(dst), path,  (sizeof(path) > 0) ? sizeof(path) - 1 : 0)
+
 EINTERN int       e_user_init(void);
 EINTERN int       e_user_shutdown(void);
 
@@ -9,13 +14,9 @@ EINTERN size_t      e_user_homedir_concat_len(char *dst, size_t size, const char
 EINTERN size_t      e_user_homedir_concat(char *dst, size_t size, const char *path);
 EINTERN size_t      e_user_homedir_snprintf(char *dst, size_t size, const char *fmt, ...) EINA_PRINTF(3, 4);
 
-#define e_user_homedir_concat_static(dst, path) e_user_homedir_concat_len(dst, sizeof(dst), path, (sizeof(path) > 0) ? sizeof(path) - 1 : 0)
-
 EINTERN const char *e_user_dir_get(void);
 EINTERN size_t      e_user_dir_concat_len(char *dst, size_t size, const char *path, size_t path_len);
 EINTERN size_t      e_user_dir_concat(char *dst, size_t size, const char *path);
 EINTERN size_t      e_user_dir_snprintf(char *dst, size_t size, const char *fmt, ...) EINA_PRINTF(3, 4);
 
-#define e_user_dir_concat_static(dst, path) e_user_dir_concat_len(dst, sizeof(dst), path,  (sizeof(path) > 0) ? sizeof(path) - 1 : 0)
-
 #endif
index a11482d5e1cbfa8def6ccbbfc3089a24e382957c..0409361bf1cdf4e6fc4cbb8cf8ae6cfe99569521 100644 (file)
@@ -1,4 +1,5 @@
-#include "e.h"
+#include "e_util_transform_intern.h"
+
 #define E_UTIL_TRANSFORM_IS_ZERO(p) ((p) > -1e-6 && (p) < 1e-6)
 #define E_UTIL_TRANSFORM_ROUND(x)   ((x) >= 0 ? (int)((x) + 0.5) : (int)((x) - 0.5))
 
diff --git a/src/bin/e_util_transform_intern.h b/src/bin/e_util_transform_intern.h
new file mode 100644 (file)
index 0000000..225a156
--- /dev/null
@@ -0,0 +1,7 @@
+#ifndef E_UTIL_TRANSFORM_INTERN_H
+#define E_UTIL_TRANSFORM_INTERN_H
+
+#include "e_intern.h"
+#include "e_util_transform.h"
+
+#endif
index 8029ca11b2f543752434cb3863163dfbf77b6435..e06c1d6f3f6df5190e91e366fef836352e6b3661 100644 (file)
@@ -1,9 +1,11 @@
-#include "e.h"
 #include "e_utils_intern.h"
 #include "e_icon_intern.h"
 #include "e_input.h"
 #include "e_desk_intern.h"
 
+#include <ctype.h>
+#include <fnmatch.h>
+
 EINTERN E_Path * path_data = NULL;
 EINTERN E_Path * path_images = NULL;
 EINTERN E_Path * path_fonts = NULL;
index d99f0552da1e6554f05f12d915f3e9a2613afc75..a8da6dcded589ba17c43684969530d036ec313b3 100644 (file)
@@ -1,8 +1,12 @@
 #ifndef E_UTILS_INTERN_H
 #define E_UTILS_INTERN_H
 
+#include "e_intern.h"
+#include "e_utils.h"
 #include "e_path_intern.h"
 
+#include <Ecore_File.h>
+
 #define E_UTIL_DBUS_READY_PATH "/run/enlightenment/dbus_ready"
 #define E_UTIL_SENSORD_READY_PATH "/run/enlightenment/sensord_ready"
 
index 49c5c5b6c054e518d8ed9a69cf4e73d06f919d25..0c738264dfaac352b5649144647bd804eec8cbac 100644 (file)
@@ -5,8 +5,6 @@
  * 2. Fill in table and keep it up-to-date
  * 3. (optional) Write the whole blob into a file on disk for later use)
  */
-
-#include "e.h"
 #include "e_uuid_store_intern.h"
 
 #include <sys/types.h>
index 9e6afc90d9ed0aa7d0dc59090cec82385ef4ef91..9534ffb404a0383bfec795767d6ff55d887a52fc 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_UUID_STORE_INTERN_H
 #define E_UUID_STORE_INTERN_H
 
+#include "e_intern.h"
+
 /* vim:ts=8 sw=3 sts=3 expandtab cino=>5n-3f0^-2{2(0W1st0
  */
 
index dee9f6d6ac3a29346e4563e254eace4d897cf483..2c01b1c37944a23db996d157ce27841888954575 100644 (file)
@@ -1,4 +1,7 @@
-#include "e.h"
+#include "e_wtz_shell_intern.h"
+#include "e_client_intern.h"
+#include "e_zone_intern.h"
+
 #include <wtz-shell-server-protocol.h>
 
 #ifdef LOG
index 145fb67f703a82c72dd6991fd0597b6def868855..5bb0aea13ac912a068cecbeb29b673013140885a 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_WTZ_SHELL_INTERN_H
 #define E_WTZ_SHELL_INTERN_H
 
+#include "e_intern.h"
+
 EINTERN Eina_Bool e_wtz_shell_init(void);
 EINTERN void      e_wtz_shell_shutdown(void);
 
index ccf517bd350795516b6a3e46ed0ab6f8a5fecdb4..0c3ec033e0429ea06352fb0bd0be5b85df5f1b3b 100644 (file)
@@ -1,8 +1,8 @@
-#include "e.h"
 #include "e_xdg_shell_v6_intern.h"
 #include "e_comp_wl_intern.h"
 #include "e_comp_wl_shell_intern.h"
 #include "e_client_intern.h"
+#include "e_config_intern.h"
 
 #include <libds/surface.h>
 #include <libds/types/ds_xdg_shell_v6.h>
index b318a7a4b2d29c355fbbbc58efdbe68f51065611..366a58a58f9bdb27ebb300eecbaf626f4e7172c6 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_XDG_SHELL_V6_INTERN_H
 #define E_XDG_SHELL_V6_INTERN_H
 
+#include "e_intern.h"
+
 EINTERN Eina_Bool e_xdg_shell_v6_init(void);
 EINTERN E_Client *e_xdg_shell_v6_xdg_surface_ec_get(struct wl_resource *resource);
 
index 69c8bfe1f1a66217a2b5ed13921d149ddcfebbef..5e13294c90bd5c7caa9cd71299c3aa9cd6ddfc02 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_zone_intern.h"
 #include "e_client_intern.h"
 #include "e_desk_intern.h"
@@ -16,6 +15,7 @@
 #include "e_focus_intern.h"
 #include "e_policy_visibility_intern.h"
 #include "e_comp_object_intern.h"
+#include "e_comp_canvas_intern.h"
 
 #include <libds-tizen/screen.h>
 
index e217a6235dda7cc76d1a6c959d84ab2350c85152..c2efb7272362a383a9d41d17e9492a0cedbb2113 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_ZONE_INTERN_H
 #define E_ZONE_INTERN_H
 
+#include "e_intern.h"
+#include "e_zone.h"
+
 #include <wayland-server.h>
 
 extern EINTERN int E_EVENT_ZONE_DESK_COUNT_SET;
index b979b0b730218b819d9942a69d8baa6283b37941..8049206b336ee4bf881ca93a6a4ff839d84b6c1a 100644 (file)
@@ -1,8 +1,6 @@
-#include "e.h"
 #include "services/e_service_cbhm_intern.h"
 #include "e_policy_conformant.h"
 #include "e_policy_wl_intern.h"
-#include "e_client_intern.h"
 
 typedef struct _E_Policy_Cbhm E_Policy_Cbhm;
 
index ee7e724b18ccc62a6c8f36ce70c662a069a985fa..e4f9f9d3172d0f12784c189c8e2bed7ecfe4a663 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_SERVICE_CBHM_INTERN_H
 #define E_SERVICE_CBHM_INTERN_H
 
+#include "e_intern.h"
+#include "e_client_intern.h"
+
 EINTERN void          e_service_cbhm_client_set(E_Client *ec);
 EINTERN E_Client     *e_service_cbhm_client_get(void);
 EINTERN void          e_service_cbhm_show(void);
index c82795825abb913aca0a301e9383591c94902058..30178b71d9c4924248b9202fdde67a55df6e8173 100644 (file)
@@ -1,5 +1,5 @@
-#include "e.h"
-#include "e_service_gesture.h"
+#include "e_service_gesture_intern.h"
+#include "e_utils_intern.h"
 
 #define MAX_FINGERS 10
 #define E_SERVICE_GESTURE_KEY "e_service_gesture_enabled"
diff --git a/src/bin/services/e_service_gesture_intern.h b/src/bin/services/e_service_gesture_intern.h
new file mode 100644 (file)
index 0000000..d1de713
--- /dev/null
@@ -0,0 +1,7 @@
+#ifndef E_SERVICE_GESTURE_INTERN_H
+#define E_SERVICE_GESTURE_INTERN_H
+
+#include "e_intern.h"
+#include "e_service_gesture.h"
+
+#endif
index 06d8c93b89d93221cdae35eba4b13dc984cda99a..b1ffbf88e9989d53a33330c2a862d70bc62b1793 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "services/e_service_indicator_intern.h"
 #include "e_policy_wl_intern.h"
 
index 7a50657e2a089f895ae9c48d0558bb0d1be7e687..92222fdb3ff7b4c63853b5c66b343dd79a457c83 100644 (file)
@@ -1,9 +1,10 @@
 #ifndef E_SERVICE_INDICATOR_INTERN_H
 #define E_SERVICE_INDICATOR_INTERN_H
 
+#include "e_intern.h"
+
 EINTERN Eina_Bool     e_mod_indicator_client_set(E_Client *ec);
 EINTERN void          e_mod_indicator_owner_set(E_Client *ec);
 EINTERN E_Client     *e_mod_indicator_owner_get(void);
 
-
 #endif
index 09b482d03531fd224938454b241000507f5c8b74..bd644b4d6d73962bb449811a557411dc9ee318ae 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "services/e_service_kvm_intern.h"
 #include "e_comp_wl_data_intern.h"
 #include "e_comp_wl_intern.h"
index 42544d53a8cdfb6f22ad4b3ee74b20b64721e87f..5d8b0edf9f2ade4b8e3ce73be4105336fee29ac8 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_SERVICE_KVM_INTERN_H
 #define E_SERVICE_KVM_INTERN_H
 
+#include "e_intern.h"
+
 typedef struct _E_Service_Kvm E_Service_Kvm;
 
 EINTERN Eina_Bool      e_service_kvm_client_set(E_Client *ec);
index 7d9dabb8d5470e69c8a20e8a063022bc07373286..914049a211562ba0c137d52e6fce096464dafbe4 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "services/e_service_launcher_intern.h"
 #include "e_comp_wl_rsm_intern.h"
 #include "e_comp_wl_tbm_intern.h"
@@ -9,6 +8,8 @@
 #include "e_policy_visibility_intern.h"
 #include "e_client_intern.h"
 #include "e_comp_object_intern.h"
+#include "e_utils_intern.h"
+#include "e_appinfo_intern.h"
 
 #include <tzsh_server.h>
 #include <wayland-tbm-server.h>
index f24fbe11878e1637f37033962b8282cfabda9248..25e3455789e3ab5ce23da14cf7a4c8f8b5a69355 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_SERVICE_LAUNCHER_INTERN_H
 #define E_SERVICE_LAUNCHER_INTERN_H
 
+#include "e_intern.h"
+
 EINTERN void              e_service_launcher_resource_set(E_Client *ec, struct wl_resource *res_tws_lc);
 EINTERN void              e_service_launcher_client_set(E_Client *ec);
 EINTERN void              e_service_launcher_client_unset(E_Client *ec);
index 1941386e3ffab76fb01886a29a8553d76681d0ff..f21bef4f2e88883ab6ae9f5d1787cb5ac1c18fb6 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "services/e_service_lockscreen_intern.h"
 #include "e_policy_private_data.h"
 #include "e_client_intern.h"
index 12fd7f9a776b032fc10e805f467d8e0dcde389ce..429464548d9bd1dc2ff684a66839c24886d9beba 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_SERVICE_LOCKSCREEN_INTERN_H
 #define E_SERVICE_LOCKSCREEN_INTERN_H
 
+#include "e_intern.h"
+
 EINTERN Eina_Bool     e_service_lockscreen_client_set(E_Client *ec);
 
 #endif
index ebd8d51a9c94b79f8cf4b5e0cd54f68b69ea0b7f..b69bf8acf2d031d9c07b7bef7e517a4e3e5ee766 100644 (file)
@@ -1,6 +1,5 @@
-#include "e.h"
 #include "services/e_service_quickpanel_intern.h"
-#include "e_service_gesture.h"
+#include "e_service_gesture_intern.h"
 #include "services/e_service_region_intern.h"
 #include "e_pixmap_intern.h"
 #include "e_policy_intern.h"
@@ -8,6 +7,7 @@
 #include "e_policy_private_data.h"
 #include "e_client_intern.h"
 #include "e_comp_object_intern.h"
+#include "e_layout_intern.h"
 
 #define SMART_NAME            "quickpanel_object"
 #define INTERNAL_ENTRY                       \
index 70bf3b53e9fab3fb623a1720d1a9f4943465e535..9dd995a079761739c85c91fb228576f0e6f38195 100644 (file)
@@ -1,7 +1,9 @@
 #ifndef E_SERVICE_QUICKPANEL_INTERN_H
 #define E_SERVICE_QUICKPANEL_INTERN_H
 
+#include "e_intern.h"
 #include "e_service_quickpanel.h"
+#include "e_policy_intern.h"
 
 EINTERN E_Service_Quickpanel_Type e_service_quickpanel_type_get(E_Client *ec);
 EINTERN void                      e_service_quickpanel_show(E_Client *ec);
index 4c7630d438d2bdd9b52a41d9ca612ed65a732a29..6e4b511ae093d19a3151fd5ed0094ee1589a1461 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "services/e_service_region_intern.h"
 
 #define ENTRY(...)                                 \
index 201dc574864560ba4a53379a8dc577a6fdb7fbd4..3707143c3f22a6ee2792baa11939d96f026d57df 100644 (file)
@@ -1,12 +1,13 @@
 #ifndef E_SERVICE_REGION_INTERN_H
 #define E_SERVICE_REGION_INTERN_H
 
-#include "e_service_gesture.h"
+#include "e_intern.h"
+#include "e_service_gesture_intern.h"
 #include "e_policy_private_data.h"
 
-EINTERN Evas_Object        *e_service_region_object_new(E_Client *ec);
-EINTERN Eina_Bool           e_service_region_rectangle_set(Evas_Object *ro, E_Policy_Angle_Map ridx, int x, int y, int w, int h);
-EINTERN Eina_Bool           e_service_region_rectangle_get(Evas_Object *ro, E_Policy_Angle_Map ridx, int *x, int *y, int *w, int *h);
-EINTERN Eina_Bool           e_service_region_gesture_set(Evas_Object *ro, E_Policy_Gesture_Type type, int nfingers, E_Policy_Gesture_Start_Cb cb_start, E_Policy_Gesture_Move_Cb cb_move, E_Policy_Gesture_End_Cb cb_end, void *data);
+EINTERN Evas_Object *e_service_region_object_new(E_Client *ec);
+EINTERN Eina_Bool    e_service_region_rectangle_set(Evas_Object *ro, E_Policy_Angle_Map ridx, int x, int y, int w, int h);
+EINTERN Eina_Bool    e_service_region_rectangle_get(Evas_Object *ro, E_Policy_Angle_Map ridx, int *x, int *y, int *w, int *h);
+EINTERN Eina_Bool    e_service_region_gesture_set(Evas_Object *ro, E_Policy_Gesture_Type type, int nfingers, E_Policy_Gesture_Start_Cb cb_start, E_Policy_Gesture_Move_Cb cb_move, E_Policy_Gesture_End_Cb cb_end, void *data);
 
 #endif
index 4c21f522dfc73a382916f93f15505b8df735aa25..d83292b3068410480206a961199fffb7fcc718de 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "services/e_service_scrsaver_intern.h"
 #include "e_policy_private_data.h"
 #include "e_client_intern.h"
index 246797713217c841fd43a4d94dc272e363374411..9e97dc62005c2813eabdc1b6670d2f8fb8e7ea0b 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_SERVICE_SCRSAVER_INTERN_H
 #define E_SERVICE_SCRSAVER_INTERN_H
 
+#include "e_intern.h"
+
 EINTERN Eina_Bool e_service_scrsaver_client_set(E_Client *ec);
 
 #endif
index 11bdcb3599378028d1a4b43434f1cb1d9404c2b6..2dc1612352874ba095af18a94c895e5f679eb7cc 100644 (file)
@@ -1,6 +1,5 @@
-#include "e.h"
 #include "services/e_service_softkey_intern.h"
-#include "e_service_gesture.h"
+#include "e_service_gesture_intern.h"
 #include "services/e_service_region_intern.h"
 #include "e_policy_intern.h"
 #include "e_policy_private_data.h"
index eefa94f46409fc59a091356fe383b76fcb99ecb9..adb280f3ea393bb1ba05f30f82bb76cba7dddd9e 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef E_SERVICE_SOFTKEY_INTERN_H
 #define E_SERVICE_SOFTKEY_INTERN_H
 
+#include "e_intern.h"
 #include "e_service_softkey.h"
 
 EINTERN void              e_service_softkey_client_set(E_Client *ec);
index 4d00883060d780b988fe2b8f930f896459779911..2150c0f5835fd408c46ff59ab2ebd3ddafaf1b23 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "services/e_service_taskbar_intern.h"
 #include "e_policy_private_data.h"
 #include "e_client_intern.h"
index 3f9336a38a31ef670af2e24fe88517c1d0d07118..1d4d8a4dde93c2ac34b405ce99e14781e627b074 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_SERVICE_TASKBAR_INTERN_H
 #define E_SERVICE_TASKBAR_INTERN_H
 
+#include "e_intern.h"
+
 typedef struct _E_Service_Taskbar E_Service_Taskbar;
 
 struct _E_Service_Taskbar
index 80c0cd57f191764ba6c9629f66d1a49be45cf2e2..fb01860a2caeb6ac5dc3806ddc8a7adc9039dfc0 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "services/e_service_volume_intern.h"
 #include "e_policy_private_data.h"
 #include "e_client_intern.h"
index e4a5752ad806d8324615076c7d50ca91c67b64ba..ecaee58b740617d6f3e0b9ce96d4cd885d3d8997 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_SERVICE_VOLUME_INTERN_H
 #define E_SERVICE_VOLUME_INTERN_H
 
+#include "e_intern.h"
+
 EINTERN Eina_Bool     e_service_volume_client_set(E_Client *ec);
 EINTERN E_Client     *e_service_volume_client_get(void);
 EINTERN Eina_Bool     e_service_volume_region_set(int region_type, int angle, Eina_Tiler *tiler);
index d70108db5482a67787d807d0088a6dc7f2de05f3..fabde7715fabd2814336512e135d7111d01b188e 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_zone_video_intern.h"
 #include "e_client_video_intern.h"
 #include "e_comp_wl_intern.h"
@@ -8,6 +7,8 @@
 #include "iface/e_video_hwc_intern.h"
 #include "iface/e_video_external_intern.h"
 #include "iface/e_video_fallback_intern.h"
+#include "e_comp_wl_rsm_intern.h"
+#include "e_eom_intern.h"
 
 #define EO_DATA_KEY  "E_Client_Video"
 
index 68f504b11b86103ee5087afa0e38b292a021ef83..c72aadc916dbcf6d8d628360c436dbc722d84184 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_CLIENT_VIDEO_INTERN_H
 #define E_CLIENT_VIDEO_INTERN_H
 
+#include "e_intern.h"
+#include "e_client_video.h"
+
 typedef struct _E_Client_Video E_Client_Video;
 typedef struct _E_Client_Video_Info E_Client_Video_Info;
 
index a4af72b6e9af502058dcb313750a332845586a6e..8e188828c9fb373492a12bf17e99f15d49444bce 100644 (file)
@@ -1,10 +1,10 @@
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include "e.h"
 #include "e_client_video_intern.h"
 #include "e_video_debug_intern.h"
+#include "e_info_server_intern.h"
+#include "e_comp_wl_video_buffer_intern.h"
+#include "e_zone_video_intern.h"
+#include "e_comp_wl_viewport_intern.h"
+#include "e_utils_intern.h"
 
 #include <tizen-extension-server-protocol.h>
 
index c990b14981c59de36d40590e150f300aef114a40..a5d04221d1527baf5708a70e3775afa361ebc737 100644 (file)
@@ -1,8 +1,3 @@
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include "e.h"
 #include "e_comp_wl_video_buffer_intern.h"
 #include "e_util_video_intern.h"
 
index f50b8aadbe67c23c7ed659f019ff0d48918634f1..7885be64a1278754b1c5ee960d2cd043afa0490a 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_COMP_WL_VIDEO_BUFFER_INTERN_H
 #define E_COMP_WL_VIDEO_BUFFER_INTERN_H
 
+#include "e_intern.h"
+#include "e_comp_wl_video_buffer.h"
+
 #define VBUF_IS_VALID(b)   e_comp_wl_video_buffer_valid(b)
 #define MSTAMP(b)          ((b)?(b)->stamp:0)
 
index f2fb493ecbd7aeb755a2acea7323ee8d7fc673c0..42af907940a33cbd6bf4045de853df8f8c7f14f1 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_COMP_WL_VIDEO_INTERN_H
 #define E_COMP_WL_VIDEO_INTERN_H
 
+#include "e_intern.h"
+
 EINTERN Eina_Bool  e_comp_wl_video_init(void);
 EINTERN void       e_comp_wl_video_shutdown(void);
 
index feec3ab74476b1bd1d9e611e06ce751fda1ee355..70f15c994f0e8b6a50a371f1b91040d8f952e68d 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_util_video_intern.h"
 
 #include <tbm_surface.h>
index a1f205757b9ab5fd66838a83ef56715e97cac933..911c1defe7447ab532fdfd74cddb194b4913c62a 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_UTIL_VIDEO_INTERN_H
 #define E_UTIL_VIDEO_INTERN_H
 
+#include "e_intern.h"
+
 #include <tbm_surface.h>
 
 #define C(b,m)              (((b) >> (m)) & 0xFF)
index fdca0572bf1bf7fb93f706c7a8089aba6c7adb35..22412c55619718f07eda9a9a8dd6fe6d48c86d73 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef E_VIDEO_COMP_IFACE
 #define E_VIDEO_COMP_IFACE
 
+#include "e_intern.h"
 #include "e_client_video_intern.h"
 
 typedef struct _E_Video_Comp_Iface E_Video_Comp_Iface;
index 25b588d79942f5ce03443d80cf60ea7b9102c1e3..c005a8e9da823d3d46cd0e63cc3eb967b3fe702a 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_video_debug_intern.h"
 
 static Eina_Bool video_to_primary = EINA_FALSE;
index 95259417b4fdd6fb8cedc833a59ad7ee12d3c774..8a01d4dd204b00a4af9524482e2887539bd16bc1 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_VIDEO_DEBUG_INTERN_H
 #define E_VIDEO_DEBUG_INTERN_H
 
+#include "e_intern.h"
+#include "e_video_debug.h"
+
 #ifdef VER
 #undef VER
 #endif
index 931be66876961b60be301231847d5efb2e0241ae..7a19a73d41724976b92da843ca540be537d21a42 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_zone_video_intern.h"
 #include "e_comp_screen_intern.h"
 
index 473515d240faeefca12389461a37de7e035f418e..90ca8d82f78b259e08a2fc4262335ab476d7d933 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_ZONE_VIDEO_INTERN_H
 #define E_ZONE_VIDEO_INTERN_H
 
+#include "e_intern.h"
+#include "e_zone_video.h"
+
 EINTERN E_Hwc_Policy e_zone_video_hwc_policy_get(E_Zone *zone);
 
 #endif
index 0af7464016a4aecc3274c2dd7d5af198fc7b9240..3be2f651be4ce686ff676b7efbc727ba563b2694 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "iface/e_video_external_intern.h"
 
 typedef struct _E_Video_External E_Video_External;
index 2e5e3b36d8b67a084769d393360ec1529c067829..2e95a662bb19c7ddb64b48bb4100e18d17bbcfdf 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef E_VIDEO_EXTERNAL_INTERN_H
 #define E_VIDEO_EXTERNAL_INTERN_H
 
+#include "e_intern.h"
 #include "e_video_comp_iface.h"
 
 /* For external interface */
index 30fc0839a7683c750ee08a6419229a9e776ae3d5..4dace917369200353fe6e29595b1e9262e683644 100644 (file)
@@ -1,4 +1,3 @@
-#include "e.h"
 #include "e_policy_intern.h"
 #include "e_video_debug_intern.h"
 #include "iface/e_video_fallback_intern.h"
index c676d8ec1856a3735c98e836baefc9e7f0eabf61..1f6901f35cc4d1e2187f9deaae7dec37cd058152 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef E_VIDEO_FALLBACK_INTERN_H
 #define E_VIDEO_FALLBACK_INTERN_H
 
+#include "e_intern.h"
 #include "e_video_comp_iface.h"
 
 /* For fallback interface */
index 65f67c688e8fb694a1336c7e08f63aa67c417da6..8b3fefa9a9464e3afebe93fe34ecfa92de277787 100644 (file)
@@ -1,8 +1,3 @@
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include "e.h"
 #include "e_zone_video_intern.h"
 #include "e_client_video_intern.h"
 #include "e_video_hwc_intern.h"
index a67648ad2f28ea79b77f62198ad2c8570e30a1b1..482b41eace9d026a4f9b85c4da871aba2a3bebed 100644 (file)
@@ -1,8 +1,10 @@
 #ifndef E_VIDEO_HWC_INTERN_H
 #define E_VIDEO_HWC_INTERN_H
 
+#include "e_intern.h"
 #include "e_video_comp_iface.h"
 #include "e_comp_wl_video_buffer_intern.h"
+#include "e_main_intern.h"
 
 #define BUFFER_MAX_COUNT   5
 
index ba33a0a6674190dd76ff4302e8c7df5d45f659de..b31d2634af09e5c759051f5d77b8e0061bcc8fe4 100644 (file)
@@ -1,8 +1,3 @@
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include "e.h"
 #include "e_video_hwc_intern.h"
 #include "e_comp_screen_intern.h"
 #include "e_comp_wl_intern.h"
index b8bc941deb3bd662329921f6418ad071b17154be..f2574aaf96a6d37c926b93d5be271a215cacb265 100644 (file)
@@ -1,8 +1,3 @@
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include "e.h"
 #include "e_video_hwc_intern.h"
 #include "e_comp_screen_intern.h"
 #include "e_hwc_window_intern.h"
index c26c331d7b1861ee5ab83fe7455eb385213ca098..6b901f92debdb6d51121d0ef5a0d2804ab42f7f6 100644 (file)
@@ -141,44 +141,6 @@ using namespace std;
 # include <Eio.h>
 # include <uuid.h>
 
-# ifdef E_API
-#  undef E_API
-# endif
-# ifdef WIN32
-#  ifdef BUILDING_DLL
-#   define E_API __declspec(dllexport)
-#  else
-#   define E_API __declspec(dllimport)
-#  endif
-# else
-#  ifdef __GNUC__
-#   if __GNUC__ >= 4
-/* BROKEN in gcc 4 on amd64 */
-#    if 0
-#     pragma GCC visibility push(hidden)
-#    endif
-#    define E_API __attribute__ ((visibility("default")))
-#   else
-#    define E_API
-#   endif
-#  else
-#   define E_API
-#  endif
-# endif
-
-# ifdef EINTERN
-#  undef EINTERN
-# endif
-# ifdef __GNUC__
-#  if __GNUC__ >= 4
-#   define EINTERN __attribute__ ((visibility("hidden")))
-#  else
-#   define EINTERN
-#  endif
-# else
-#  define EINTERN
-# endif
-
 typedef struct _E_Before_Idler E_Before_Idler;
 typedef struct _E_Rect         E_Rect;
 
@@ -388,70 +350,11 @@ typedef struct _E_Rect         E_Rect;
 # undef E_TYPEDEFS
 # include "e_includes.h"
 
-E_API double          e_main_ts(const char *str);
-E_API double          e_main_ts_begin(const char *str);
-E_API double          e_main_ts_end(const char *str);
-
 struct _E_Rect
 {
    int x, y, w, h;
 };
 
-extern E_API Eina_Bool starting;
-extern E_API Eina_Bool stopping;
-
-//#define SMARTERR(args...) abort()
-#define SMARTERRNR() return
-#define SMARTERR(x)  return x
-
-/**
- * @}
- */
-
-/**
- * @defgroup Optional_Modules Optional Modules
- * @{
- *
- * @defgroup Optional_Conf Configurations
- * @defgroup Optional_Control Controls
- * @defgroup Optional_Devices Devices & Hardware
- * @defgroup Optional_Fileman File Managers
- * @defgroup Optional_Gadgets Gadgets
- * @defgroup Optional_Launcher Launchers
- * @defgroup Optional_Layouts Layout Managers
- * @defgroup Optional_Look Look & Feel
- * @defgroup Optional_Monitors Monitors & Notifications
- * @defgroup Optional_Mobile Mobile Specific Extensions
- * @}
- */
-
-#if 0
-#define REFD(obj, num) \
-   do { \
-      printf("%p <- %5i <- ref   | %s-%i\n", \
-             obj, E_OBJECT(obj)->references, \
-             __FILE__, num); \
-   } while (0)
-
-#define UNREFD(obj, num) \
-   do { \
-      printf("%p <- %5i <- unref | %s-%i\n", \
-             obj, E_OBJECT(obj)->references, \
-             __FILE__, num); \
-   } while (0)
-
-#define DELD(obj, num) \
-   do { \
-      printf("%p <- %5i <- del   | %s-%i\n", \
-             obj, E_OBJECT(obj)->references, \
-             __FILE__, num); \
-   } while (0)
-#else
-# define REFD(obj, num)
-# define UNREFD(obj, num)
-# define DELD(obj, num)
-#endif
-
 #ifndef USE_E_APPINFO
  #define e_policy_appinfo_find_with_pid e_appinfo_find_with_pid
  #define e_policy_appinfo_base_output_resolution_set e_appinfo_base_output_resolution_set
index fbf272aac67c055d9d9463ae6d0f5c24ae90e0ba..05bb75e02dcea05f9d6737ee10943a168ef8c6d3 100644 (file)
@@ -1,10 +1,6 @@
-#ifdef E_TYPEDEFS
-
-typedef struct _E_Action             E_Action;
-
-#else
 #ifndef E_ACTIONS_H
 #define E_ACTIONS_H
 
-#endif
+typedef struct _E_Action E_Action;
+
 #endif
index 56c9846b92e686798b714a87c591ce2bdfda8e0a..d50ead0f49e9c239115a666af48a304ab86b1e19 100644 (file)
@@ -1,9 +1,9 @@
-#ifdef E_TYPEDEFS
-typedef struct _E_Appinfo E_Appinfo;
-#else
 # ifndef E_APPINFO_H
 # define E_APPINFO_H
 
+#include <unistd.h>
+
+typedef struct _E_Appinfo E_Appinfo;
 typedef struct _E_Appinfo_Hook E_Appinfo_Hook;
 
 typedef enum _E_Appinfo_Hook_Point
@@ -25,5 +25,4 @@ E_API Eina_Stringshare      *e_appinfo_appid_get(E_Appinfo *eai);
 E_API E_Appinfo_Hook        *e_appinfo_hook_add(E_Appinfo_Hook_Point point, E_Appinfo_Hook_Cb cb, const void *data);
 E_API void                   e_appinfo_hook_del(E_Appinfo_Hook *hook);
 
-# endif
 #endif
index d884e5d53af089fc50846473f5e7cf12d957807c..c38c118c4ac3ecbbcd7d27d82d4447131b3c6347 100644 (file)
@@ -1,165 +1,7 @@
-#ifdef E_TYPEDEFS
-
-#if 0
-typedef enum _E_Binding_Context
-{
-   E_BINDING_CONTEXT_NONE,
-   E_BINDING_CONTEXT_UNKNOWN,
-   E_BINDING_CONTEXT_WINDOW,
-   E_BINDING_CONTEXT_ZONE,
-   E_BINDING_CONTEXT_COMPOSITOR,
-   E_BINDING_CONTEXT_MANAGER,
-   E_BINDING_CONTEXT_MENU,
-   E_BINDING_CONTEXT_WINLIST,
-   E_BINDING_CONTEXT_POPUP,
-   E_BINDING_CONTEXT_ANY
-} E_Binding_Context;
-
-/* why do we do this? config stored bindings must be fixed. x's modifier masks
- * may change from time to time, xserver to xserver - so we can't do a
- * simple match without translating to fixed values
- */
-typedef enum _E_Binding_Modifier
-{
-   E_BINDING_MODIFIER_NONE = 0,
-   E_BINDING_MODIFIER_SHIFT = (1 << 0),
-   E_BINDING_MODIFIER_CTRL = (1 << 1),
-   E_BINDING_MODIFIER_ALT = (1 << 2),
-   E_BINDING_MODIFIER_WIN = (1 << 3),
-   E_BINDING_MODIFIER_ALTGR = (1 << 4)
-} E_Binding_Modifier;
-
-typedef struct _E_Binding_Mouse  E_Binding_Mouse;
-typedef struct _E_Binding_Key    E_Binding_Key;
-typedef struct _E_Binding_Signal E_Binding_Signal;
-typedef struct _E_Binding_Wheel  E_Binding_Wheel;
-#endif
-
-typedef struct E_Binding_Event_Mouse_Button E_Binding_Event_Mouse_Button;
-typedef struct E_Binding_Event_Wheel E_Binding_Event_Wheel;
-
-#else
 #ifndef E_BINDINGS_H
 #define E_BINDINGS_H
 
-#if 0
-struct E_Binding_Event_Mouse_Button
-{
-   int               button; /**< Mouse button number that was raised (1 - 32) */
-
-   Evas_Coord_Point  canvas; /**< The X/Y location of the cursor */
-
-   unsigned int modifiers; /**< modifier keys pressed during the event */
-   unsigned int timestamp;
-   Eina_Bool double_click : 1;
-   Eina_Bool triple_click : 1;
-   Eina_Bool hold : 1;
-   Eina_Bool scroll : 1;
-};
-
-struct E_Binding_Event_Wheel
-{
-   int direction;
-   int z;
-
-   Evas_Coord_Point  canvas; /**< The X/Y location of the cursor */
-
-   unsigned int modifiers; /**< modifier keys pressed during the event */
-   unsigned int timestamp;
-};
-
-struct _E_Binding_Mouse
-{
-   E_Binding_Context ctxt;
-   int button;
-   E_Binding_Modifier mod;
-   unsigned char any_mod : 1;
-   const char *action;
-   const char *params;
-};
-
-struct _E_Binding_Key
-{
-   E_Binding_Context ctxt;
-   const char *key;
-   E_Binding_Modifier mod;
-   unsigned char any_mod : 1;
-   const char *action;
-   const char *params;
-};
-
-struct _E_Binding_Signal
-{
-   E_Binding_Context ctxt;
-   const char *sig;
-   const char *src;
-   E_Binding_Modifier mod;
-   unsigned char any_mod : 1;
-   const char *action;
-   const char *params;
-};
-
-struct _E_Binding_Wheel
-{
-   E_Binding_Context ctxt;
-   int direction;
-   int z;
-   E_Binding_Modifier mod;
-   unsigned char any_mod : 1;
-   const char *action;
-   const char *params;
-};
-
-EINTERN int         e_bindings_init(void);
-EINTERN int         e_bindings_shutdown(void);
-
-EINTERN void        e_bindings_mouse_reset(void);
-EINTERN void        e_bindings_key_reset(void);
-EINTERN void        e_bindings_wheel_reset(void);
-EINTERN void        e_bindings_signal_reset(void);
-EINTERN void        e_bindings_reset(void);
-
-EINTERN void        e_bindings_mouse_add(E_Binding_Context ctxt, int button, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
-EINTERN void        e_bindings_mouse_del(E_Binding_Context ctxt, int button, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
-EINTERN E_Action   *e_bindings_mouse_button_find(E_Binding_Context ctxt, E_Binding_Event_Mouse_Button *ev, E_Binding_Mouse **bind_ret);
-EINTERN E_Action   *e_bindings_mouse_down_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Binding_Event_Mouse_Button *ev);
-EINTERN E_Action   *e_bindings_mouse_down_evas_event_handle(E_Binding_Context ctxt, E_Object *obj, Evas_Event_Mouse_Down *ev);
-EINTERN E_Action   *e_bindings_mouse_down_ecore_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Event_Mouse_Button *ev);
-EINTERN E_Action   *e_bindings_mouse_up_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Binding_Event_Mouse_Button *ev);
-EINTERN E_Action   *e_bindings_mouse_up_evas_event_handle(E_Binding_Context ctxt, E_Object *obj, Evas_Event_Mouse_Up *ev);
-EINTERN E_Action   *e_bindings_mouse_up_ecore_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Event_Mouse_Button *ev);
-
-EINTERN void        e_bindings_key_add(E_Binding_Context ctxt, const char *key, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
-EINTERN void        e_bindings_key_del(E_Binding_Context ctxt, const char *key, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
-EINTERN E_Binding_Key *e_bindings_key_get(const char *action);
-EINTERN E_Binding_Key *e_bindings_key_find(const char *key, E_Binding_Modifier mod, int any_mod);
-EINTERN E_Action   *e_bindings_key_down_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Event_Key *ev);
-EINTERN E_Action   *e_bindings_key_up_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Event_Key *ev);
-EINTERN E_Action   *e_bindings_key_down_event_find(E_Binding_Context ctxt, Ecore_Event_Key *ev);
-EINTERN E_Action   *e_bindings_key_up_event_find(E_Binding_Context ctxt, Ecore_Event_Key *ev);
-
-EINTERN Eina_Bool   e_bindings_key_allowed(const char *key);
-
-EINTERN void        e_bindings_signal_add(E_Binding_Context ctxt, const char *sig, const char *src, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
-EINTERN void        e_bindings_signal_del(E_Binding_Context ctxt, const char *sig, const char *src, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
-EINTERN E_Action   *e_bindings_signal_find(E_Binding_Context ctxt, const char *sig, const char *src, E_Binding_Signal **bind_ret);
-EINTERN E_Action   *e_bindings_signal_handle(E_Binding_Context ctxt, E_Object *obj, const char *sig, const char *src);
-
-EINTERN void        e_bindings_wheel_add(E_Binding_Context ctxt, int direction, int z, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
-EINTERN void        e_bindings_wheel_del(E_Binding_Context ctxt, int direction, int z, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
-EINTERN E_Action   *e_bindings_wheel_find(E_Binding_Context ctxt, E_Binding_Event_Wheel *ev, E_Binding_Wheel **bind_ret);
-EINTERN E_Action   *e_bindings_wheel_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Binding_Event_Wheel *ev);
-EINTERN E_Action   *e_bindings_wheel_evas_event_handle(E_Binding_Context ctxt, E_Object *obj, Evas_Event_Mouse_Wheel *ev);
-EINTERN E_Action   *e_bindings_wheel_ecore_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Event_Mouse_Wheel *ev);
-
-EINTERN int e_bindings_evas_modifiers_convert(Evas_Modifier *modifiers);
-EINTERN int e_bindings_modifiers_to_ecore_convert(E_Binding_Modifier modifiers);
-EINTERN void e_bindings_evas_event_mouse_down_button_convert(const Evas_Event_Mouse_Down *ev, E_Binding_Event_Mouse_Button *event);
-EINTERN void e_bindings_evas_event_mouse_up_button_convert(const Evas_Event_Mouse_Up *ev, E_Binding_Event_Mouse_Button *event);
-EINTERN void e_bindings_evas_event_mouse_wheel_convert(const Evas_Event_Mouse_Wheel *ev, E_Binding_Event_Wheel *event);
-EINTERN void e_bindings_ecore_event_mouse_button_convert(const Ecore_Event_Mouse_Button *ev, E_Binding_Event_Mouse_Button *event);
-EINTERN void e_bindings_ecore_event_mouse_wheel_convert(const Ecore_Event_Mouse_Wheel *ev, E_Binding_Event_Wheel *event);
-#endif
+typedef struct E_Binding_Event_Mouse_Button E_Binding_Event_Mouse_Button;
+typedef struct E_Binding_Event_Wheel        E_Binding_Event_Wheel;
 
 #endif
-#endif
index 87f871573dbdba2e6f69ffdae36c2082b697d15d..1a434a38af6750f46c98f83b61236d2768ad9f13 100644 (file)
@@ -1,4 +1,35 @@
-#ifdef E_TYPEDEFS
+#ifndef E_CLIENT_H
+#define E_CLIENT_H
+
+#include <e_types.h>
+#include <e_object.h>
+#include <e_comp.h>
+#include <e_pointer.h>
+#include <e_hwc_window.h>
+#include <e_desk.h>
+#include <e_zone.h>
+#include <e_actions.h>
+#include <e_util_transform.h>
+#include <e_plane_renderer.h>
+#include <e_pixmap.h>
+#include <e_bindings.h>
+#include <e_config.h>
+
+#include <uuid.h>
+#include <Ecore.h>
+#include <Evas.h>
+
+typedef struct E_Event_Client E_Event_Client;
+typedef struct _E_Event_Client_Property E_Event_Client_Property;
+typedef struct _E_Event_Client_Focus_Skip E_Event_Client_Focus_Skip_Set;
+typedef struct _E_Event_Client_Focus_Skip E_Event_Client_Focus_Skip_Unset;
+EINA_DEPRECATED typedef struct _E_Client_Pending_Resize E_Client_Pending_Resize;
+typedef struct _E_Client_Pending_Geometry E_Client_Pending_Geometry;
+typedef struct E_Event_Client_Zone_Set E_Event_Client_Zone_Set;
+typedef struct E_Event_Client_Desk_Set E_Event_Client_Desk_Set;
+
+typedef struct _E_Client_Intercept_Hook E_Client_Intercept_Hook;
+
 typedef enum _E_Client_Screen_Limit
 {
     E_CLIENT_OFFSCREEN_LIMIT_ALLOW_PARTIAL = 0,
@@ -57,31 +88,6 @@ typedef enum _E_Focus_Policy_Ext
    E_FOCUS_EXT_HISTORY,
 } E_Focus_Policy_Ext;
 
-typedef enum
-{
-   /* same as ecore-x types */
-   E_WINDOW_TYPE_UNKNOWN = 0,
-   E_WINDOW_TYPE_DESKTOP,
-   E_WINDOW_TYPE_DOCK,
-   E_WINDOW_TYPE_TOOLBAR,
-   E_WINDOW_TYPE_MENU,
-   E_WINDOW_TYPE_UTILITY,
-   E_WINDOW_TYPE_SPLASH,
-   E_WINDOW_TYPE_DIALOG,
-   E_WINDOW_TYPE_NORMAL,
-   E_WINDOW_TYPE_DROPDOWN_MENU,
-   E_WINDOW_TYPE_POPUP_MENU,
-   E_WINDOW_TYPE_TOOLTIP,
-   E_WINDOW_TYPE_NOTIFICATION,
-   E_WINDOW_TYPE_COMBO,
-   E_WINDOW_TYPE_DND,
-   /* since UNKNOWN was used improperly in comp matching,
-    * this value is a placeholder to indicate that we want
-    * only type UNKNOWN windows
-    */
-   E_WINDOW_TYPE_REAL_UNKNOWN = 999
-} E_Window_Type;
-
 typedef enum _E_Focus_Setting
 {
    E_FOCUS_NONE,
@@ -225,19 +231,6 @@ typedef enum _E_Iconified_Type
    E_ICONIFIED_TYPE_PARENT_ICONIFY_BY_CLIENT = 4, // iconified by parent's iconify request
 } E_Iconified_Type;
 
-typedef struct E_Client E_Client;
-
-typedef struct E_Event_Client E_Event_Client;
-typedef struct _E_Event_Client_Property E_Event_Client_Property;
-typedef struct _E_Event_Client_Focus_Skip E_Event_Client_Focus_Skip_Set;
-typedef struct _E_Event_Client_Focus_Skip E_Event_Client_Focus_Skip_Unset;
-EINA_DEPRECATED typedef struct _E_Client_Pending_Resize E_Client_Pending_Resize;
-typedef struct _E_Client_Pending_Geometry E_Client_Pending_Geometry;
-typedef struct E_Event_Client_Zone_Set E_Event_Client_Zone_Set;
-typedef struct E_Event_Client_Desk_Set E_Event_Client_Desk_Set;
-typedef struct _E_Client_Hook E_Client_Hook;
-typedef struct _E_Client_Intercept_Hook E_Client_Intercept_Hook;
-
 #ifdef _F_ZONE_WINDOW_ROTATION_
 typedef struct E_Event_Client E_Event_Client_Rotation_Change_Begin;
 typedef struct E_Event_Client E_Event_Client_Rotation_Change_Cancel;
@@ -294,7 +287,6 @@ typedef void (*E_Client_Move_Intercept_Cb)(E_Client *, int x, int y);
 typedef void (*E_Client_Hook_Cb)(void *data, E_Client *ec);
 typedef Eina_Bool (*E_Client_Intercept_Hook_Cb)(void *data, E_Client *ec);
 typedef Evas_Object* (*E_Client_Resize_Object_Create_Cb)(E_Client *ec);
-#else
 
 #define E_CLIENT_TYPE (int)0xE0b01002
 
@@ -365,7 +357,7 @@ struct _E_Client_Pending_Geometry
    unsigned int                  serial;
 };
 
-struct E_Client
+struct _E_Client
 {
    E_Object e_obj_inherit;
    EINA_INLIST;
index 3bc41d4f21abdf6df764db56ec4fe9ac3f31382e..f92e36c01fcec0dcdd7ecac2531d5b12a12a2523 100644 (file)
@@ -1,5 +1,23 @@
-#ifdef E_TYPEDEFS
+#ifndef E_COMP_H
+#define E_COMP_H
+
+#include <e_comp_cfdata.h>
+#include <e_client.h>
+#include <e_object.h>
+#include <e_comp_object.h>
+#include <e_comp_screen.h>
+#include <e_pointer.h>
+#include <e_zone.h>
+#include <e_desk.h>
+#include <e_desk_area.h>
+
+#include <stdatomic.h>
 #include <glib.h>
+#include <Ecore.h>
+#include <wayland-server.h>
+
+# define E_COMP_TYPE (int) 0xE0b01003
+# define E_CLIENT_LAYER_COUNT 19
 
 typedef struct _E_Comp                       E_Comp;
 typedef struct _E_Comp_Wl_Client_Data        E_Comp_Client_Data;  // deprecated. use E_Comp_Wl_Client_Data intead of this.
@@ -7,46 +25,6 @@ typedef struct _E_Comp_Wl_Data               E_Comp_Wl_Data;
 typedef struct _E_Comp_Wl_Client_Data        E_Comp_Wl_Client_Data;
 typedef struct _E_Comp_Connected_Client_Info E_Comp_Connected_Client_Info;
 
-# define E_COMP_TYPE (int) 0xE0b01003
-
-# define E_LAYER_COUNT 31
-# define E_CLIENT_LAYER_COUNT 19
-
-typedef enum _E_Layer
-{
-   E_LAYER_BOTTOM = -100,
-   E_LAYER_BG = -1, // zone bg stuff
-   E_LAYER_DESKTOP = 0, // desktop objects: fileman, gadgets, shelves
-   E_LAYER_DESKTOP_TOP = 10, // raised desktop objects: gadgets
-   E_LAYER_CLIENT_DESKTOP = 100, //shelves
-   E_LAYER_CLIENT_BELOW = 150,
-   E_LAYER_CLIENT_NORMAL = 200,
-   E_LAYER_CLIENT_ABOVE = 250,
-   E_LAYER_CLIENT_EDGE = 300,
-   E_LAYER_CLIENT_FULLSCREEN = 350,
-   E_LAYER_CLIENT_EDGE_FULLSCREEN = 400,
-   E_LAYER_CLIENT_POPUP = 450,
-   E_LAYER_CLIENT_TOP = 500,
-   E_LAYER_CLIENT_PRIO = 600,
-   E_LAYER_CLIENT_NOTIFICATION_LOW = 650,
-   E_LAYER_CLIENT_NOTIFICATION_NORMAL = 700,
-   E_LAYER_CLIENT_NOTIFICATION_HIGH = 750,
-   E_LAYER_CLIENT_NOTIFICATION_TOP = 800,
-   E_LAYER_CLIENT_ALERT_LOW = 850,
-   E_LAYER_CLIENT_ALERT = 900,
-   E_LAYER_CLIENT_ALERT_HIGH = 950,
-   E_LAYER_CLIENT_DRAG = 980,
-   E_LAYER_CLIENT_CURSOR = 990,
-   E_LAYER_POPUP = 999, // popups
-   E_LAYER_EFFECT = 1999,
-   E_LAYER_DESK_OBJECT_BELOW = 3000,
-   E_LAYER_DESK_OBJECT = 3100,
-   E_LAYER_DESK_OBJECT_ABOVE = 3200,
-   E_LAYER_MENU = 5000, // menus
-   E_LAYER_DESKLOCK = 9999, // desklock
-   E_LAYER_MAX = 32767 // EVAS_LAYER_MAX
-} E_Layer;
-
 typedef enum _E_Comp_Image_Filter
 {
    E_COMP_IMAGE_FILTER_NONE = 0,
@@ -55,19 +33,6 @@ typedef enum _E_Comp_Image_Filter
    E_COMP_IMAGE_FILTER_INVERSE,
 } E_Comp_Image_Filter;
 
-
-#else
-# ifndef E_COMP_H
-#  define E_COMP_H
-
-# include "e_comp_cfdata.h"
-
-extern E_API int E_EVENT_COMPOSITOR_DISABLE;
-extern E_API int E_EVENT_COMPOSITOR_ENABLE;
-
-extern E_API E_Comp *e_comp;
-extern E_API E_Comp_Wl_Data *e_comp_wl;
-
 typedef void (*E_Comp_Cb)(void);
 
 typedef struct _E_Comp_Hook E_Comp_Hook;
@@ -206,6 +171,12 @@ struct _E_Comp_Connected_Client_Info
    struct wl_listener destroy;
 };
 
+extern E_API int E_EVENT_COMPOSITOR_DISABLE;
+extern E_API int E_EVENT_COMPOSITOR_ENABLE;
+
+extern E_API E_Comp *e_comp;
+extern E_API E_Comp_Wl_Data *e_comp_wl;
+
 E_API E_Comp_Hook    *e_comp_hook_add(E_Comp_Hook_Point hookpoint, E_Comp_Hook_Cb func, const void *data);
 E_API void            e_comp_hook_del(E_Comp_Hook *ph);
 E_API E_Comp_Config  *e_comp_config_get(void);
@@ -229,4 +200,3 @@ E_API E_Desk_Area *e_comp_desk_area_find_by_ec(E_Client *ec);
 //#endif
 
 #endif
-#endif
index e62878b7f3ae1d624117409dd0f1d03adce27a88..e6138464692bfdaa909af4979452e9a3d16a3ff9 100644 (file)
@@ -1,6 +1,3 @@
-#ifdef E_TYPEDEFS
-
-#else
 #ifndef E_COMP_CANVAS_H
 #define E_COMP_CANVAS_H
 
@@ -11,4 +8,3 @@ E_API void          e_comp_canvas_norender_push(void);
 E_API void          e_comp_canvas_norender_pop(void);
 
 #endif
-#endif
index adb6857a18e2ddb68e96fda57f07e5aab6a149a2..bf1a464003c70e8f78e47e0f311cc4a2baad671e 100644 (file)
@@ -1,12 +1,10 @@
-#ifdef E_TYPEDEFS
 
-typedef struct _E_Comp_Config E_Comp_Config;
-typedef struct _E_Comp_Match  E_Comp_Match;
-
-#else
 #ifndef E_COMP_CFDATA_H
 #define E_COMP_CFDATA_H
 
+typedef struct _E_Comp_Config E_Comp_Config;
+typedef struct _E_Comp_Match  E_Comp_Match;
+
 struct _E_Comp_Config
 {
    int           version;
@@ -110,4 +108,3 @@ struct _E_Comp_Match
 };
 
 #endif
-#endif
index ee97bbb5231d1c4cb1be8df16b7fed960b13c5c8..37f8f3e9d16c8a08220a8b1006d420685ef9b088 100644 (file)
@@ -1,11 +1,27 @@
-#ifdef E_TYPEDEFS
+#ifndef E_COMP_OBJECT_H
+#define E_COMP_OBJECT_H
+
+#include <e_map.h>
+
+#include <Eina.h>
+#include <Ecore.h>
+#include <Ecore_Input.h>
+#include <Evas.h>
+#include <Edje.h>
+
+#define E_COMP_OBJECT_FRAME_RESHADOW "COMP_RESHADOW"
+
 typedef struct E_Comp_Object_Frame E_Comp_Object_Frame;
 typedef struct E_Event_Comp_Object E_Event_Comp_Object;
+typedef struct E_Comp_Object_Mover E_Comp_Object_Mover;
+
+typedef struct _E_Comp_Object_Hook E_Comp_Object_Hook;
+
 typedef void (*E_Comp_Object_Autoclose_Cb)(void *, Evas_Object *);
 typedef Eina_Bool (*E_Comp_Object_Key_Cb)(void *, Ecore_Event_Key *);
 typedef Eina_Bool (*E_Comp_Object_Mover_Cb) (void *data, Evas_Object *comp_object, const char *signal);
 
-typedef struct E_Comp_Object_Mover E_Comp_Object_Mover;
+typedef Eina_Bool (*E_Comp_Object_Hook_Cb)(void *data, E_Client *ec);
 
 typedef enum
 {
@@ -16,12 +32,6 @@ typedef enum
    E_COMP_OBJECT_CONTENT_TYPE_LAST,
 } E_Comp_Object_Content_Type;
 
-#else
-#ifndef E_COMP_OBJECT_H
-#define E_COMP_OBJECT_H
-
-#define E_COMP_OBJECT_FRAME_RESHADOW "COMP_RESHADOW"
-
 struct E_Event_Comp_Object
 {
    Evas_Object *comp_object;
@@ -33,8 +43,6 @@ struct E_Comp_Object_Frame
    Eina_Bool calc : 1; // inset has been calculated
 };
 
-typedef struct _E_Comp_Object_Hook E_Comp_Object_Hook;
-
 typedef enum _E_Comp_Object_Hook_Point
 {
    E_COMP_OBJECT_HOOK_EFFECT_START,
@@ -48,8 +56,6 @@ typedef enum _E_Comp_Object_Hook_Point
    E_COMP_OBJECT_HOOK_LAST,
 } E_Comp_Object_Hook_Point;
 
-typedef Eina_Bool (*E_Comp_Object_Hook_Cb)(void *data, E_Client *ec);
-
 struct _E_Comp_Object_Hook
 {
    EINA_INLIST;
@@ -146,5 +152,4 @@ E_API void                          e_comp_object_intercept_hook_del(E_Comp_Obje
 #endif
 
 #endif
-#endif
 
index dd84f9f363ecfb9cbdd78e3a9813007f0eb8aa1c..cfb3244b46d4d491f52390b6f541a34dc8a6cfb6 100644 (file)
@@ -1,14 +1,13 @@
-#ifdef E_TYPEDEFS
-
-typedef struct _E_Comp_Screen   E_Comp_Screen;
-
-#else
 #ifndef E_COMP_SCREEN_H
 #define E_COMP_SCREEN_H
 
+#include <e_client.h>
+
 #include <tdm.h>
 #include <xkbcommon/xkbcommon.h>
 
+typedef struct _E_Comp_Screen   E_Comp_Screen;
+
 struct _E_Comp_Screen
 {
    Eina_List     *outputs; // available screens
@@ -47,5 +46,3 @@ E_API Eina_Bool  e_comp_screen_available_video_formats_get(const tbm_format **fo
 E_API void       e_comp_screen_keymap_set(struct xkb_context **ctx, struct xkb_keymap **map);
 
 #endif /*E_COMP_SCREEN_H*/
-
-#endif
index e3756909eb2b0e15cdfa8b0ef33df25690b00ca7..2af8bd782c9fe836b6faf4974f01d90fe00e768b 100644 (file)
@@ -1,42 +1,51 @@
-#ifdef E_TYPEDEFS
-typedef struct _E_Comp_Wl_Hook E_Comp_Wl_Hook;
-typedef struct _E_Comp_Wl_Pid_Hook E_Comp_Wl_Pid_Hook;
-#else
-# ifndef E_COMP_WL_H
-#  define E_COMP_WL_H
+#ifndef E_COMP_WL_H
+#define E_COMP_WL_H
+
+#include <e_types.h>
+#include <e_comp.h>
+#include <e_client.h>
+#include <e_explicit_sync.h>
+#include <e_presentation_time.h>
+#include <e_dnd.h>
+#include <e_devicemgr.h>
+#include <e_util_transform.h>
+
+#include <stdatomic.h>
+#include <tbm_surface.h>
+#include <glib.h>
+#include <Evas.h>
 
 /* NB: Turn off shadow warnings for Wayland includes */
-#  pragma GCC diagnostic push
-#  pragma GCC diagnostic ignored "-Wshadow"
-#  define WL_HIDE_DEPRECATED
-#  include <wayland-server.h>
-#  pragma GCC diagnostic pop
-
-#  include <xkbcommon/xkbcommon.h>
-
-#  ifdef __linux__
-#   include <linux/input.h>
-#  else
-#   define BTN_LEFT 0x110
-#   define BTN_RIGHT 0x111
-#   define BTN_MIDDLE 0x112
-#   define BTN_SIDE 0x113
-#   define BTN_EXTRA 0x114
-#   define BTN_FORWARD 0x115
-#   define BTN_BACK 0x116
-#  endif
-
-#  define container_of(ptr, type, member) \
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wshadow"
+#define WL_HIDE_DEPRECATED
+#include <wayland-server.h>
+#pragma GCC diagnostic pop
+
+#include <xkbcommon/xkbcommon.h>
+
+#ifdef __linux__
+#include <linux/input.h>
+#else
+#define BTN_LEFT 0x110
+#define BTN_RIGHT 0x111
+#define BTN_MIDDLE 0x112
+#define BTN_SIDE 0x113
+#define BTN_EXTRA 0x114
+#define BTN_FORWARD 0x115
+#define BTN_BACK 0x116
+#endif
+
+#define container_of(ptr, type, member) \
    ({ \
       const __typeof__( ((type *)0)->member ) *__mptr = (ptr); \
       (type *)( (char *)__mptr - offsetof(type,member) ); \
    })
 
-#include <tbm_surface.h>
+typedef struct _E_Comp_Wl_Hook E_Comp_Wl_Hook;
+typedef struct _E_Comp_Wl_Pid_Hook E_Comp_Wl_Pid_Hook;
 
 typedef struct _E_Comp_Wl_Aux_Hint  E_Comp_Wl_Aux_Hint;
-typedef struct _E_Comp_Wl_Buffer E_Comp_Wl_Buffer;
-typedef struct _E_Comp_Wl_Buffer_Ref E_Comp_Wl_Buffer_Ref;
 typedef struct _E_Comp_Wl_Buffer_Viewport E_Comp_Wl_Buffer_Viewport;
 typedef struct _E_Comp_Wl_Subsurf_Data E_Comp_Wl_Subsurf_Data;
 typedef struct _E_Comp_Wl_Surface_State E_Comp_Wl_Surface_State;
@@ -131,12 +140,6 @@ struct _E_Comp_Wl_Buffer
    E_Explicit_Sync_Buffer_Release *buffer_release;
 };
 
-struct _E_Comp_Wl_Buffer_Ref
-{
-   E_Comp_Wl_Buffer *buffer;
-   struct wl_listener destroy_listener;
-};
-
 struct _E_Comp_Wl_Buffer_Viewport {
    struct
      {
@@ -601,5 +604,4 @@ E_API void                      e_comp_wl_pid_hook_del(E_Comp_Wl_Pid_Hook *ch);
 E_API E_Comp_Wl_Intercept_Hook *e_comp_wl_intercept_hook_add(E_Comp_Wl_Intercept_Hook_Point hookpoint, E_Comp_Wl_Intercept_Hook_Cb func, const void *data);
 E_API void                      e_comp_wl_intercept_hook_del(E_Comp_Wl_Intercept_Hook *ch);
 
-# endif
 #endif
index 0a104388745184f6924d541c67978d74bc937e32..eb1961b4d3fd6bd1b6f98a38892c465fb047dd3d 100644 (file)
@@ -1,4 +1,8 @@
-#ifdef E_TYPEDEFS
+# ifndef E_COMP_WL_CAPTURE_H
+# define E_COMP_WL_CAPTURE_H
+
+#include <e_client.h>
+
 typedef enum _E_Capture_Save_State
 {
    E_CAPTURE_SAVE_STATE_START = 0,
@@ -10,12 +14,7 @@ typedef enum _E_Capture_Save_State
 
 typedef void (*E_Capture_Client_Save_End_Cb)(void *data, E_Client *ec, const Eina_Stringshare *dest, E_Capture_Save_State state);
 
-#else
-# ifndef E_COMP_WL_CAPTURE_H
-# define E_COMP_WL_CAPTURE_H
-
 E_API   E_Capture_Save_State e_comp_wl_capture_client_image_save(E_Client *ec, const char* path, const char* name, E_Capture_Client_Save_End_Cb func_end, void *data, Eina_Bool skip_child);
 E_API   void                 e_comp_wl_capture_client_image_save_cancel(E_Client *ec);
 
-# endif
 #endif
index 93dc39daaa9ae5e7922a7e9a8c63c3be2a071cbb..ac75d7e76c4ac4cf8eb9386b6e458a912591af0a 100644 (file)
@@ -1,18 +1,15 @@
-#ifdef E_TYPEDEFS
-
-E_API extern int E_EVENT_TEXT_INPUT_PANEL_VISIBILITY_CHANGE;
-
-typedef struct _E_Event_Text_Input_Panel_Visibility_Change E_Event_Text_Input_Panel_Visibility_Change;
-
-#else
 #ifndef E_COMP_WL_INPUT_H
 #define E_COMP_WL_INPUT_H
 
+typedef struct _E_Event_Text_Input_Panel_Visibility_Change E_Event_Text_Input_Panel_Visibility_Change;
+
 struct _E_Event_Text_Input_Panel_Visibility_Change
 {
    Eina_Bool visible;
 };
 
+E_API extern int E_EVENT_TEXT_INPUT_PANEL_VISIBILITY_CHANGE;
+
 E_API Eina_Bool         e_comp_wl_input_keymap_cache_file_use_get(void);
 E_API Eina_Stringshare *e_comp_wl_input_keymap_path_get(struct xkb_rule_names names);
 E_API void              e_comp_wl_input_keymap_set(const char *rules, const char *model, const char *layout, const char *variant, const char *options, struct xkb_context *dflt_ctx, struct xkb_keymap *dflt_map);
@@ -21,5 +18,4 @@ E_API int               e_comp_wl_input_keymap_keyname_to_keycode(const char * n
 E_API void      e_comp_wl_input_keyboard_repeat_set(int delay, int rate);
 E_API Eina_Bool e_comp_wl_input_pointer_constraint_activated_get(void);
 
-# endif
 #endif
index 41477d9500acaaf75ccf7a50808c6d1b2615b676..a6a403f6f5f3f5af653851aee8cfaaef554db7db 100644 (file)
@@ -1,11 +1,8 @@
-#ifdef E_TYPEDEFS
-
-typedef struct _E_Event_Remote_Surface_Provider E_Event_Remote_Surface_Provider;
-
-#else
 #ifndef E_COMP_WL_RSM_H
 #define E_COMP_WL_RSM_H
 
+typedef struct _E_Event_Remote_Surface_Provider E_Event_Remote_Surface_Provider;
+
 struct _E_Event_Remote_Surface_Provider
 {
    E_Client *ec;
@@ -22,4 +19,3 @@ E_API void       e_comp_wl_remote_surface_image_save_skip_set(E_Client *ec, Eina
 E_API Eina_List *e_comp_wl_remote_surface_providers_get(E_Client *ec);
 
 #endif
-#endif
index 334977285a9d64d74caf2dcc5b35c7261c0e3635..08e7e075ae24120dffdf236db89d9fd4f43b09bc 100644 (file)
@@ -1,14 +1,11 @@
-#ifdef E_TYPEDEFS
-
-typedef struct _E_Comp_Wl_Tbm_Funcs E_Comp_Wl_Tbm_Funcs;
-
-#else
-# ifndef E_COMP_WL_TBM_H
-#  define E_COMP_WL_TBM_H
+#ifndef E_COMP_WL_TBM_H
+#define E_COMP_WL_TBM_H
 
 #include <tbm_surface.h>
 #include <wayland-tbm-server.h>
 
+typedef struct _E_Comp_Wl_Tbm_Funcs E_Comp_Wl_Tbm_Funcs;
+
 struct _E_Comp_Wl_Tbm_Funcs
 {
    char *module_name;
@@ -22,5 +19,4 @@ struct _E_Comp_Wl_Tbm_Funcs
 E_API   Eina_Bool e_comp_wl_tbm_module_func_set(const char *module_name, E_Comp_Wl_Tbm_Funcs *fn);
 E_API   Eina_Bool e_comp_wl_tbm_module_func_unset(void);
 
-# endif
 #endif
index 5664fd81d54ff0312114fcf824b4b2b40ca07864..7659a69d460f200d9f319f1afe0f842359491322 100644 (file)
@@ -1,10 +1,6 @@
-#ifdef E_TYPEDEFS
-
-#else
 #ifndef E_COMP_WL_VIDEO_BUFFER_H
 #define E_COMP_WL_VIDEO_BUFFER_H
 
 E_API   void e_comp_wl_video_buffer_list_print(const char *log_path);
 
 #endif
-#endif
index a59d44bae4ddc7017bcf3685b5e0d48bb59bb288..d16fcb91076816179dab2b90c776879f4b1d449e 100644 (file)
@@ -1,6 +1,3 @@
-#ifdef E_TYPEDEFS
-
-#else
 #ifndef E_COMP_WL_VIEWPORT_H
 #define E_COMP_WL_VIEWPORT_H
 
@@ -9,4 +6,3 @@ E_API Eina_Bool e_comp_wl_viewport_create(struct wl_resource *resource,
                                           struct wl_resource *surface);
 
 #endif
-#endif
index 3e12306d6ff67bab5d31d39cfa1311af66364ade..4fa480ed41fdc667f4ffd9474bdda60f05a0040d 100644 (file)
@@ -1,21 +1,10 @@
-#ifdef E_TYPEDEFS
-
-#define E_CONFIG_LIMIT(v, min, max) {if (v >= max) v = max; else if (v <= min) v = min; }
-
-typedef struct _E_Config                        E_Config;
-typedef struct _E_Config_Module                 E_Config_Module;
-typedef struct _E_Config_Desktop_Name           E_Config_Desktop_Name;
-typedef struct _E_Config_Desktop_Background     E_Config_Desktop_Background;
-typedef struct _E_Config_Env_Var                E_Config_Env_Var;
-typedef struct _E_Config_Client_Type            E_Config_Client_Type;
-typedef struct _E_Config_Policy_Desk            E_Config_Policy_Desk;
-typedef struct _E_Config_Socket_Access          E_Config_Socket_Access;
-typedef struct _E_Config_Aux_Hint_Supported     E_Config_Aux_Hint_Supported;
-
-#else
 #ifndef E_CONFIG_H
 #define E_CONFIG_H
 
+#include <e_config_data.h>
+
+#define E_CONFIG_LIMIT(v, min, max) {if (v >= max) v = max; else if (v <= min) v = min; }
+
 /* increment this whenever we change config enough that you need new
  * defaults for e to work.
  */
@@ -26,6 +15,16 @@ typedef struct _E_Config_Aux_Hint_Supported     E_Config_Aux_Hint_Supported;
 #define E_CONFIG_FILE_GENERATION 19
 #define E_CONFIG_FILE_VERSION    ((E_CONFIG_FILE_EPOCH * 1000000) + E_CONFIG_FILE_GENERATION)
 
+typedef struct _E_Config                        E_Config;
+typedef struct _E_Config_Module                 E_Config_Module;
+typedef struct _E_Config_Desktop_Name           E_Config_Desktop_Name;
+typedef struct _E_Config_Desktop_Background     E_Config_Desktop_Background;
+typedef struct _E_Config_Env_Var                E_Config_Env_Var;
+typedef struct _E_Config_Client_Type            E_Config_Client_Type;
+typedef struct _E_Config_Policy_Desk            E_Config_Policy_Desk;
+typedef struct _E_Config_Socket_Access          E_Config_Socket_Access;
+typedef struct _E_Config_Aux_Hint_Supported     E_Config_Aux_Hint_Supported;
+
 struct _E_Config
 {
    int         config_version; // INTERNAL
@@ -425,4 +424,3 @@ E_API int   e_config_domain_save(const char *domain, E_Config_DD *edd, const voi
 extern E_API E_Config *e_config;
 
 #endif
-#endif
index b52ea3225c720b3f7b82516591e1203b7c274dae..920992f019a0f76e0e4816195c752438b2806328 100644 (file)
@@ -1,4 +1,7 @@
-#ifdef E_TYPEDEFS
+#ifndef E_CONFIG_DATA_H
+#define E_CONFIG_DATA_H
+
+#include <Eet.h>
 
 /** \def E_CONFIG_DD_NEW(str, typ)
  * is used to create definition of a struct  
 
 typedef Eet_Data_Descriptor                 E_Config_DD;
 
-#else
-#ifndef E_CONFIG_DATA_H
-#define E_CONFIG_DATA_H
-
 E_API E_Config_DD *e_config_descriptor_new(const char *name, int size);
 E_API void e_config_descriptor_free(E_Config_DD *edd);
 E_API E_Config_DD *e_config_descriptor_find(const char *name);
 
 #endif
-#endif
index 9ed86ed3e298c6def131795d82c3336cd44fd55b..e90a0813f6be243fdd51c9e963007ae28b9b35f3 100644 (file)
@@ -1,12 +1,14 @@
-#ifdef E_TYPEDEFS
-E_API extern int E_EVENT_DBUS_CONN_INIT_DONE;
-#else
 #ifndef E_DBUS_CONN_H
 #define E_DBUS_CONN_H
 
+#include <Eldbus.h>
+
 #define E_DBUS_CONN_TYPE (int)0xdb00beaf
 #define E_DBUS_CONN_DEFAULT_RETRY_COUNT 5
 
+typedef struct _E_DBus_Conn_Init_Done_Event E_DBus_Conn_Init_Done_Event;
+typedef struct _E_DBus_Conn E_DBus_Conn;
+
 typedef enum _E_DBus_Conn_Init_Status
 {
    E_DBUS_CONN_INIT_FAIL = 0,
@@ -34,8 +36,7 @@ struct _E_DBus_Conn
    unsigned int retry_intervals; /* suspend re-connection for microsecond intervals */
 };
 
-typedef struct _E_DBus_Conn_Init_Done_Event E_DBus_Conn_Init_Done_Event;
-typedef struct _E_DBus_Conn E_DBus_Conn;
+E_API extern int E_EVENT_DBUS_CONN_INIT_DONE;
 
 E_API Eldbus_Connection *e_dbus_conn_connection_ref(Eldbus_Connection_Type type);
 E_API void e_dbus_conn_connection_unref(Eldbus_Connection *conn);
@@ -44,4 +45,3 @@ E_API int e_dbus_conn_init(void);
 E_API int e_dbus_conn_shutdown(void);
 
 #endif
-#endif
index 7c28923007b5f0a7b85f0671416944e9a054fccc..d2a9a5228540df1d295b43c49588120277649f3d 100644 (file)
@@ -1,6 +1,14 @@
-#ifdef E_TYPEDEFS
+#ifndef E_DESK_H
+#define E_DESK_H
+
+#include <e_desk_area.h>
+#include <e_client.h>
+
+#define E_DESK_TYPE 0xE0b01005
+#define E_DESK_SMART_OBJ_TYPE "E_Desk_Smart_Object"
+#define E_DESK_AREA_LAYER_COUNT 9
 
-typedef struct _E_Desk E_Desk;
+typedef struct _E_Desk_Hook E_Desk_Hook;
 
 typedef struct _E_Event_Desk E_Event_Desk;
 typedef struct _E_Event_Desk E_Event_Desk_Show;
@@ -12,29 +20,6 @@ typedef struct _E_Event_Desk E_Event_Desk_Zoom_Set;
 typedef struct _E_Event_Desk E_Event_Desk_Zoom_Unset;
 typedef struct _E_Event_Desk_Geometry_Change E_Event_Desk_Geometry_Change;
 
-typedef enum _E_Desk_Area_Layer
-{
-   E_DESK_AREA_LAYER_BACKGROUND          = 0,     //E_LAYER_DESKTOP
-   E_DESK_AREA_LAYER_NORMAL_BELOW        = 150,   //E_LAYER_CLIENT_BELOW
-   E_DESK_AREA_LAYER_NORMAL              = 200,   //E_LAYER_CLIENT_NORMAL,
-   E_DESK_AREA_LAYER_NORMAL_ABOVE        = 250,   //E_LAYER_CLIENT_ABOVE,
-   E_DESK_AREA_LAYER_NOTIFICATION_LOW    = 650,   //E_LAYER_CLIENT_NOTIFICATION_LOW,
-   E_DESK_AREA_LAYER_NOTIFICATION_NORMAL = 700,   //E_LAYER_CLIENT_NOTIFICATION_NORMAL,
-   E_DESK_AREA_LAYER_NOTIFICATION_HIGH   = 750,   //E_LAYER_CLIENT_NOTIFICATION_HIGH,
-   E_DESK_AREA_LAYER_NOTIFICATION_TOP    = 800,   //E_LAYER_CLIENT_NOTIFICATION_TOP,
-   E_DESK_AREA_LAYER_SYSTEM              = 900,   //E_LAYER_CLIENT_ALERT,
-} E_Desk_Area_Layer;
-#define E_DESK_AREA_LAYER_COUNT 9
-
-#else
-#ifndef E_DESK_H
-#define E_DESK_H
-
-#define E_DESK_TYPE 0xE0b01005
-#define E_DESK_SMART_OBJ_TYPE "E_Desk_Smart_Object"
-
-typedef struct _E_Desk_Hook E_Desk_Hook;
-
 typedef enum _E_Desk_Hook_Point
 {
    E_DESK_HOOK_CLIENT_ADD,
@@ -145,4 +130,3 @@ extern E_API int E_EVENT_DESK_ZOOM_SET;
 extern E_API int E_EVENT_DESK_ZOOM_UNSET;
 
 #endif
-#endif
index 23400a2ebab2f2a6ff85ee995acf064ffff29a4a..b4141b5d3c2e30837c31ad1bbfc6e33d82fb5c47 100644 (file)
@@ -1,4 +1,16 @@
-#ifdef E_TYPEDEFS
+#ifndef E_DESK_AREA_H
+#define E_DESK_AREA_H
+
+#include <e_desk.h>
+#include <e_comp.h>
+#include <e_comp_wl.h>
+
+#define E_DESK_AREA_TYPE 0xE0b01006
+//#ifdef REFACTOR_DESK_AREA
+#define E_DESK_AREA_SMART_OBJ_TYPE "E_Desk_Area_Smart_Object"
+//#endif
+
+typedef struct _E_Desk_Area_Hook E_Desk_Area_Hook;
 
 typedef struct _E_Desk_Area E_Desk_Area;
 typedef struct _E_Event_Desk_Area E_Event_Desk_Area;
@@ -17,16 +29,6 @@ typedef enum _E_Desk_Area_Client_Layer
    E_DESK_AREA_CLIENT_LAYER_MAX,
 } E_Desk_Area_Client_Layer;
 
-#else
-#ifndef E_DESK_AREA_H
-#define E_DESK_AREA_H
-
-#define E_DESK_AREA_TYPE 0xE0b01006
-//#ifdef REFACTOR_DESK_AREA
-#define E_DESK_AREA_SMART_OBJ_TYPE "E_Desk_Area_Smart_Object"
-//#endif
-
-typedef struct _E_Desk_Area_Hook E_Desk_Area_Hook;
 
 typedef enum _E_Desk_Area_Hook_Point
 {
@@ -106,4 +108,3 @@ extern E_API int E_EVENT_DESK_AREA_CHANGE;
 //#endif
 
 #endif
-#endif
index 1bd26fc7b003dfeeda551a756ec15df57008ca3a..77a1878d1402ceb8ff2e6637edd2c92e5a01a799 100644 (file)
@@ -1,5 +1,3 @@
-#ifdef E_TYPEDEFS
-#else
 #ifndef E_DEVICE_H
 #define E_DEVICE_H
 
@@ -24,5 +22,4 @@ E_API const GList          *e_device_list_get(void);
 
 G_END_DECLS
 
-#endif
 #endif /* end of include guard: E_DEVICE_INTERN_H */
\ No newline at end of file
index ca41af83f1d320a8ea7e4673114313fe646e872a..761d72708ddd9c11e38c618233ab08de9985be5d 100644 (file)
@@ -1,8 +1,12 @@
-#ifdef E_TYPEDEFS
+#ifndef E_DEVICEMGR_H
+#define E_DEVICEMGR_H
+
+#include <glib.h>
 
-typedef struct _E_Devicemgr_Conf_Edd E_Devicemgr_Conf_Edd;
+typedef struct _E_Devicemgr             E_Devicemgr;
+typedef struct _E_Devicemgr_Wl_Data     E_Devicemgr_Wl_Data;
+typedef struct _E_Devicemgr_Conf_Edd    E_Devicemgr_Conf_Edd;
 typedef struct _E_Devicemgr_Config_Data E_Devicemgr_Config_Data;
-typedef struct _E_Devicemgr_Wl_Data E_Devicemgr_Wl_Data;
 
 typedef struct _E_Devicemgr_Input_Device
 {
@@ -22,16 +26,9 @@ typedef struct _E_Devicemgr_Input_Device_Multi
    double angle;
 } E_Devicemgr_Input_Device_Multi;
 
-typedef struct _E_Devicemgr E_Devicemgr;
 
 typedef void (*E_Devicemgr_Block_Expire_Cb) (void *data);
 
-#else
-#ifndef E_DEVICEMGR_H
-#define E_DEVICEMGR_H
-
-extern E_API E_Devicemgr *e_devicemgr;
-
 struct _E_Devicemgr
 {
    E_Devicemgr_Config_Data *dconfig;
@@ -87,10 +84,10 @@ struct _E_Devicemgr
    } keyboard_grab;
 };
 
-E_API Eina_Bool e_devicemgr_is_blocking_event(Ecore_Device_Class clas);
+extern E_API E_Devicemgr *e_devicemgr;
 
+E_API Eina_Bool e_devicemgr_is_blocking_event(Ecore_Device_Class clas);
 E_API Eina_Bool e_devicemgr_block_reset(void);
 
 #endif
-#endif
 
index 0aa99207997d76d0087851e21a764336ec0ff44e..5b4e460429f106ef4b7499ae77960aedc497e76b 100644 (file)
@@ -1,10 +1,6 @@
-#ifdef E_TYPEDEFS
-
-typedef struct _E_Drag          E_Drag;
-
-#else
 #ifndef E_DND_H
 #define E_DND_H
 
-#endif
+typedef struct _E_Drag          E_Drag;
+
 #endif
index 057f093d92a4ec4a4ae95ad715967ef24c8b396c..82f594f6d526842e2d2f5e64b7e8672fd1c706cd 100644 (file)
@@ -1,10 +1,6 @@
-#ifdef E_TYPEDEFS
-
-typedef struct _E_Egl_Sync E_Egl_Sync;
-
-#else
 #ifndef E_EGL_SYNC_H
 #define E_EGL_SYNC_H
 
+typedef struct _E_Egl_Sync E_Egl_Sync;
+
 #endif // E_EGL_SYNC_H
-#endif
index a813851899cc092cb3daa207d85fa46c67782705..55ce933fb46adb0ca22fadaecbb83269ee46a2dc 100644 (file)
@@ -1,13 +1,8 @@
-#ifdef E_TYPEDEFS
+#ifndef E_EOM_H
+#define E_EOM_H
 
-#else
-#ifndef E_COMP_WL_EOM_H
-#define E_COMP_WL_EOM_H
-
-EINTERN Eina_Bool e_eom_init(void);
-EINTERN int       e_eom_shutdown(void);
+//TODO: This file will be deprecated and will be removed.
 
 E_API   Eina_Bool e_eom_is_ec_external(E_Client *ec);
 
 #endif
-#endif
index e64091e5e555c37ac12fe0fa0a97c6686ed1ce53..9cc3fc71b5bb1b7ff33ebd784068ce046912129e 100644 (file)
@@ -1,10 +1,6 @@
-#ifdef E_TYPEDEFS
-
-typedef struct _E_Explicit_Sync_Buffer_Release E_Explicit_Sync_Buffer_Release;
-
-#else
 #ifndef E_EXPLICIT_SYNC_H
 #define E_EXPLICIT_SYNC_H
 
+typedef struct _E_Explicit_Sync_Buffer_Release E_Explicit_Sync_Buffer_Release;
+
 #endif // E_EXPLICIT_SYNC_H
-#endif
index f9cbe42504e6a50d637099ed25516ee13e2f038f..101cc2e7026ea5741cdeb5a70a6dbb62829f1848 100644 (file)
@@ -1,4 +1,15 @@
-#ifdef E_TYPEDEFS
+#ifndef E_GESTURE_H
+#define E_GESTURE_H
+
+typedef struct _E_Gesture_Info E_Gesture_Info;
+
+typedef struct _E_Event_Gesture_Edge_Swipe E_Event_Gesture_Edge_Swipe;
+typedef struct _E_Event_Gesture_Edge_Drag E_Event_Gesture_Edge_Drag;
+typedef struct _E_Event_Gesture_Tap E_Event_Gesture_Tap;
+typedef struct _E_Event_Gesture_Palm_Cover E_Event_Gesture_Palm_Cover;
+typedef struct _E_Event_Gesture_Pan E_Event_Gesture_Pan;
+typedef struct _E_Event_Gesture_Pinch E_Event_Gesture_Pinch;
+
 typedef enum _E_Gesture_Error
 {
    E_GESTURE_ERROR_NONE = 0,
@@ -34,28 +45,6 @@ typedef enum _E_Gesture_Edge_Size
    E_GESTURE_EDGE_SIZE_PARTIAL
 } E_Gesture_Edge_Size;
 
-typedef struct _E_Gesture_Info E_Gesture_Info;
-
-typedef struct _E_Event_Gesture_Edge_Swipe E_Event_Gesture_Edge_Swipe;
-typedef struct _E_Event_Gesture_Edge_Drag E_Event_Gesture_Edge_Drag;
-typedef struct _E_Event_Gesture_Tap E_Event_Gesture_Tap;
-typedef struct _E_Event_Gesture_Palm_Cover E_Event_Gesture_Palm_Cover;
-typedef struct _E_Event_Gesture_Pan E_Event_Gesture_Pan;
-typedef struct _E_Event_Gesture_Pinch E_Event_Gesture_Pinch;
-
-#else
-#ifndef E_GESTURE_H
-#define E_GESTURE_H
-
-extern E_API E_Gesture_Info *e_gesture;
-
-extern E_API int E_EVENT_GESTURE_EDGE_SWIPE;
-extern E_API int E_EVENT_GESTURE_EDGE_DRAG;
-extern E_API int E_EVENT_GESTURE_TAP;
-extern E_API int E_EVENT_GESTURE_PALM_COVER;
-extern E_API int E_EVENT_GESTURE_PAN;
-extern E_API int E_EVENT_GESTURE_PINCH;
-
 struct _E_Event_Gesture_Edge_Swipe
 {
    E_Gesture_Mode mode;
@@ -145,6 +134,15 @@ struct _E_Gesture_Info
      } pinch;
 };
 
+extern E_API E_Gesture_Info *e_gesture;
+
+extern E_API int E_EVENT_GESTURE_EDGE_SWIPE;
+extern E_API int E_EVENT_GESTURE_EDGE_DRAG;
+extern E_API int E_EVENT_GESTURE_TAP;
+extern E_API int E_EVENT_GESTURE_PALM_COVER;
+extern E_API int E_EVENT_GESTURE_PAN;
+extern E_API int E_EVENT_GESTURE_PINCH;
+
 E_API int e_gesture_edge_swipe_grab(unsigned int fingers, unsigned int edge, unsigned int edge_size, unsigned int start_point, unsigned int end_point);
 E_API int e_gesture_edge_swipe_ungrab(unsigned int fingers, unsigned int edge, unsigned int edge_size, unsigned int start_point, unsigned int end_point);
 E_API int e_gesture_edge_drag_grab(unsigned int fingers, unsigned int edge, unsigned int edge_size, unsigned int start_point, unsigned int end_point);
@@ -159,4 +157,3 @@ E_API int e_gesture_pinch_grab(unsigned int fingers);
 E_API int e_gesture_pinch_ungrab(unsigned int fingers);
 
 #endif
-#endif
index 7aa229207a26fca4c6932dae2fd22788242e94c9..71c0c7b127fbce95ca00cac3fa9bab113776a3e1 100644 (file)
@@ -1,5 +1,3 @@
-#ifdef E_TYPEDEFS
-#else
 #ifndef E_HINTS_H
 #define E_HINTS_H
 
@@ -12,4 +10,3 @@ E_API const char      *e_hints_aux_hint_value_get(E_Client *ec, const char *name
 E_API Eina_Bool        e_hints_aux_hint_change_with_pixmap(E_Pixmap *cp, int32_t id, const char *val);
 
 #endif
-#endif
index 3583b8446f3cc3b64581bff0f1fee9160e034a78..c357f26522a090863e49585cce4c2b460c308dc8 100644 (file)
@@ -1,12 +1,18 @@
-#ifdef E_TYPEDEFS
+#ifndef E_HWC_H
+#define E_HWC_H
+
+#include <e_types.h>
+#include <e_output.h>
+#include <e_hwc_window.h>
+
+#include <tdm.h>
+
+#define HWC_NAME_LEN 64
 
-typedef struct _E_Hwc     E_Hwc;
 typedef struct _E_Hwc_Sync_Callback E_Hwc_Sync_Callback;
 typedef struct _E_Hwc_Presentation_Callback E_Hwc_Presentation_Callback;
 typedef struct _E_Hwc_Presentation_Callback_List E_Hwc_Presentation_Callback_List;
 
-#define HWC_NAME_LEN 64
-
 typedef enum _E_Hwc_Mode
 {
    E_HWC_MODE_NONE = 0,
@@ -74,12 +80,6 @@ struct _E_Hwc_Presentation_Callback_List
    Eina_List *callbacks;
 };
 
-#else
-#ifndef E_HWC_H
-#define E_HWC_H
-
-#include <tdm.h>
-
 struct _E_Hwc
 {
    E_Output            *output;
@@ -197,4 +197,3 @@ E_API E_Hwc_Presentation_Callback *e_client_hwc_presentation_callback_add(E_Clie
 E_API void                         e_hwc_presentation_callback_del(E_Hwc_Presentation_Callback *callback);
 
 #endif
-#endif
diff --git a/src/include/e_hwc_planes.h b/src/include/e_hwc_planes.h
deleted file mode 100644 (file)
index 52245a2..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-#ifdef E_TYPEDEFS
-#else
-#ifndef E_HWC_PLANES_H
-#define E_HWC_PLANES_H
-
-/* used by e_hwc */
-EINTERN Eina_Bool            e_hwc_planes_init(void);
-EINTERN void                 e_hwc_planes_deinit(void);
-
-EINTERN void                 e_hwc_planes_end(E_Hwc *hwc, const char *location);
-EINTERN void                 e_hwc_planes_client_end(E_Hwc *hwc, E_Client *ec, const char *location);
-EINTERN void                 e_hwc_planes_apply(E_Hwc *hwc);
-
-EINTERN void                 e_hwc_planes_multi_plane_set(E_Hwc *hwc, Eina_Bool set);
-EINTERN Eina_Bool            e_hwc_planes_multi_plane_get(E_Hwc *hwc);
-
-EINTERN Eina_Bool            e_hwc_planes_mirror_set(E_Hwc *hwc, E_Hwc *src_hwc, Eina_Rectangle *rect);
-EINTERN void                 e_hwc_planes_mirror_unset(E_Hwc *hwc);
-EINTERN Eina_Bool            e_hwc_planes_presentation_update(E_Hwc *hwc, E_Client *ec);
-EINTERN Eina_Bool            e_hwc_planes_external_commit(E_Hwc *hwc);
-
-EINTERN Eina_Bool            e_hwc_planes_ecore_evas_set(E_Hwc *hwc, Ecore_Evas *ee);
-
-#endif
-#endif
index 7d5812faafca152eb425a7c139f59819242a1967..73487ee41ee6678181b1f8e0b1b5e8ac98095264 100644 (file)
@@ -1,14 +1,18 @@
-#ifdef E_TYPEDEFS
-
-typedef struct _E_Hwc_Window                      E_Hwc_Window;
-typedef struct _E_Hwc_Window_Target               E_Hwc_Window_Target;
-typedef struct _E_Hwc_Window_Buffer               E_Hwc_Window_Buffer;
-typedef struct _E_Hwc_Window_Update_Data          E_Hwc_Window_Update_Data;
-
-#else
 #ifndef E_HWC_WINDOW_H
 #define E_HWC_WINDOW_H
 
+#include <e_object.h>
+#include <e_client.h>
+#include <e_comp_wl.h>
+#include <e_hwc.h>
+#include <e_presentation_time.h>
+#include <e_zone.h>
+#include <e_egl_sync.h>
+
+#include <tbm_surface.h>
+#include <wayland-server.h>
+#include <Ecore.h>
+
 typedef enum _E_Hwc_Window_State
 {
    E_HWC_WINDOW_STATE_NONE,
@@ -42,24 +46,6 @@ typedef enum _E_Hwc_Window_Transition
    E_HWC_WINDOW_TRANSITION_CURSOR_TO_CURSOR
 } E_Hwc_Window_Transition;
 
-struct _E_Hwc_Window_Buffer
-{
-   tbm_surface_h                  tsurface;
-   E_Hwc_Window_Queue            *queue;
-   struct wl_listener             queue_destroy_listener;
-   Eina_Bool                      from_queue;
-   int                            transform;
-};
-
-struct _E_Hwc_Window_Update_Data
-{
-   E_Comp_Wl_Buffer_Ref           buffer_ref;
-   E_Hwc_Window_Queue_Buffer_Ref  queue_buffer_ref;
-   E_Hwc_Window_Buffer            buffer;
-   tdm_hwc_window_info            info;
-   E_Hwc_Window                  *hwc_window;
-};
-
 struct _E_Hwc_Window
 {
    E_Object                       e_obj_inherit;
@@ -181,4 +167,3 @@ struct _E_Hwc_Window_Commit_Data {
 };
 
 #endif // E_HWC_WINDOW_H
-#endif
diff --git a/src/include/e_hwc_window_queue.h b/src/include/e_hwc_window_queue.h
deleted file mode 100644 (file)
index b3ec776..0000000
+++ /dev/null
@@ -1,115 +0,0 @@
-#ifdef E_TYPEDEFS
-
-#include <wayland-server.h>
-
-# define E_HWC_WINDOW_QUEUE_BUFFER_FLAGS 7777
-
-typedef struct _E_Hwc_Window_Queue               E_Hwc_Window_Queue;
-typedef struct _E_Hwc_Window_Queue_Buffer        E_Hwc_Window_Queue_Buffer;
-typedef struct _E_Hwc_Window_Queue_Buffer_Ref    E_Hwc_Window_Queue_Buffer_Ref;
-
-typedef enum _E_Hwc_Window_Queue_State
-{
-   E_HWC_WINDOW_QUEUE_STATE_UNSET = 0,
-   E_HWC_WINDOW_QUEUE_STATE_UNSET_WAITING,
-   E_HWC_WINDOW_QUEUE_STATE_SET,
-   E_HWC_WINDOW_QUEUE_STATE_SET_WAITING_WAIT_USABLE,  /* waiting state until the wait_usable request comes */
-   E_HWC_WINDOW_QUEUE_STATE_SET_WAITING_BUFFER,       /* waiting state until the exported buffer comes */
-   E_HWC_WINDOW_QUEUE_STATE_SET_WAITING_DEQUEUEABLE,  /* waiting state until the dequeueable buffer gets */
-   E_HWC_WINDOW_QUEUE_STATE_SET_INVALID,
-} E_Hwc_Window_Queue_State;
-
-typedef enum _E_Hwc_Window_Queue_Type
-{
-   E_HWC_WINDOW_QUEUE_TYPE_NONE = 0,
-   E_HWC_WINDOW_QUEUE_TYPE_TBM_SURFACE_QUEUE,
-   E_HWC_WINDOW_QUEUE_TYPE_GBM_SURFACE,
-} E_Hwc_Window_Queue_Type;
-
-struct _E_Hwc_Window_Queue_Buffer_Ref
-{
-   E_Hwc_Window_Queue_Buffer     *buffer;
-   struct wl_listener             destroy_listener;
-};
-
-#else
-#ifndef E_HWC_WINDOW_QUEUE_H
-#define E_HWC_WINDOW_QUEUE_H
-
-#define E_HWC_WINDOW_QUEUE_TYPE (int)0xE0b11004
-
-struct _E_Hwc_Window_Queue
-{
-   E_Object                          e_obj_inherit;
-
-   E_Hwc                            *hwc;
-   tbm_surface_queue_h               tqueue;
-   void                             *gsurface;
-   Eina_List                        *buffers;
-   struct wl_signal                  destroy_signal;
-
-   E_Hwc_Window                     *user;
-   E_Hwc_Window                     *user_waiting_unset;
-   Eina_List                        *user_pending_set;
-   E_Hwc_Window_Queue_State          state;
-
-   Eina_Bool                         is_target;
-
-   int                               width;
-   int                               height;
-   tbm_format                        format;
-
-   E_Hwc_Window_Queue_Type           type;
-};
-
-struct _E_Hwc_Window_Queue_Buffer
-{
-   E_Hwc_Window_Queue            *queue;
-   E_Hwc_Window                  *user;
-   tbm_surface_h                  tsurface;
-   void                          *gbo;
-
-   struct wl_resource            *exported_wl_buffer;
-   struct wl_listener             exported_destroy_listener;
-   Eina_Bool                      exported;
-   Eina_Bool                      usable;
-   Eina_Bool                      released;
-   Eina_Bool                      acquired;
-   Eina_Bool                      dequeued;
-   Eina_Bool                      reseted;
-   Eina_Bool                      copying;
-
-   int                            busy;
-
-   struct wl_signal               destroy_signal;
-};
-
-EINTERN Eina_Bool            e_hwc_window_queue_init(void);
-EINTERN void                 e_hwc_window_queue_deinit(void);
-
-EINTERN E_Hwc_Window_Queue * e_hwc_window_queue_target_tbm_surface_queue_set(E_Hwc_Window *hwc_window, tbm_surface_queue_h tqueue);
-EINTERN E_Hwc_Window_Queue * e_hwc_window_queue_target_gbm_surface_set(E_Hwc_Window *hwc_window, void *gbm_surface, int width, int height, int format);
-
-EINTERN E_Hwc_Window_Queue * e_hwc_window_queue_user_set(E_Hwc_Window *hwc_window);
-EINTERN void                 e_hwc_window_queue_user_unset(E_Hwc_Window_Queue *queue, E_Hwc_Window *hwc_window);
-
-EINTERN E_Hwc_Window_Queue * e_hwc_window_queue_get(tbm_surface_queue_h tqueue);
-
-EINTERN E_Hwc_Window_Queue_Buffer * e_hwc_window_queue_buffer_find(E_Hwc_Window_Queue *queue, tbm_surface_h tsurface);
-EINTERN Eina_Bool                   e_hwc_window_queue_buffer_can_dequeue(E_Hwc_Window_Queue *queue);
-EINTERN E_Hwc_Window_Queue_Buffer * e_hwc_window_queue_buffer_dequeue(E_Hwc_Window_Queue *queue);
-EINTERN Eina_Bool                   e_hwc_window_queue_buffer_enqueue(E_Hwc_Window_Queue *queue, E_Hwc_Window_Queue_Buffer *queue_buffer);
-EINTERN E_Hwc_Window_Queue_Buffer * e_hwc_window_queue_buffer_acquire(E_Hwc_Window_Queue *queue);
-EINTERN Eina_Bool                   e_hwc_window_queue_buffer_release(E_Hwc_Window_Queue *queue, E_Hwc_Window_Queue_Buffer *queue_buffer);
-EINTERN void                        e_hwc_window_queue_buffer_reference(E_Hwc_Window_Queue_Buffer_Ref *ref, E_Hwc_Window_Queue_Buffer *buffer);
-
-EINTERN Eina_List *                 e_hwc_window_queue_acquirable_buffers_get(E_Hwc_Window_Queue *queue);
-EINTERN int                         e_hwc_window_queue_size_get(E_Hwc_Window_Queue *queue);
-
-EINTERN E_Hwc_Window_Queue_Type     e_hwc_window_queue_type_get(E_Hwc_Window_Queue *queue);
-
-EINTERN void                        e_hwc_window_queue_trace_debug(Eina_Bool onoff);
-EINTERN void                        e_hwc_window_queue_debug_info_get(Eldbus_Message_Iter *iter);
-
-#endif // E_HWC_WINDOW_QUEUE_H
-#endif
index d9ea6950650205ec3bad0e1d82ff8c347bdf50fb..640cf5015e2fa0381751e4b9fb7d49779923d5b2 100644 (file)
@@ -1,11 +1,7 @@
-#ifdef E_TYPEDEFS
-
-#else
 #ifndef E_HWC_WINDOWS_H
 #define E_HWC_WINDOWS_H
 
-E_API   void                 e_hwc_windows_debug_dump_start(void);
-E_API   void                 e_hwc_windows_debug_dump_stop(void);
+E_API void e_hwc_windows_debug_dump_start(void);
+E_API void e_hwc_windows_debug_dump_stop(void);
 
 #endif
-#endif
index c08aead1f797ca45977507d50afb71889c19a5b2..96607f1c710b8fe8b97596249019d727c2e26137 100644 (file)
@@ -1,3 +1,4 @@
+#include "e_types.h"
 #include "e_object.h"
 #include "e_focus.h"
 #include "e_zone.h"
 #include "e_plane.h"
 #include "e_plane_renderer.h"
 #include "e_output.h"
-#include "e_hwc_planes.h"
 #include "e_hwc_windows.h"
 #include "e_hwc_window.h"
-#include "e_hwc_window_queue.h"
 #include "e_hwc.h"
 #include "e_presentation_time.h"
 #include "e_explicit_sync.h"
index a25d86bf1e605dac9f376cd837c315c39514f084..9a1d9931513877fbd4614329d4243f7bd7c4bc2a 100644 (file)
@@ -1,20 +1,14 @@
-#ifdef E_TYPEDEFS
-
-typedef void (*E_Info_Hook_Cb)(void *data, const char *log_path);
-typedef struct _E_Info_Hook E_Info_Hook;
-
-#else
-
 #ifndef E_INFO_SERVER_H
 #define E_INFO_SERVER_H
 
 #include <e_info_shared_types.h>
 
-E_API extern int E_EVENT_INFO_ROTATION_MESSAGE;
-
 typedef struct E_Event_Info_Rotation_Message E_Event_Info_Rotation_Message;
+
 typedef struct _E_Info_Server_Hook E_Info_Server_Hook;
+typedef struct _E_Info_Hook E_Info_Hook;
 
+typedef void (*E_Info_Hook_Cb)(void *data, const char *log_path);
 typedef void (*E_Info_Server_Hook_Cb)(void *data);
 
 typedef enum _E_Info_Server_Hook_Point
@@ -47,9 +41,10 @@ struct _E_Info_Server_Hook
    unsigned char     delete_me : 1;
 };
 
+E_API extern int E_EVENT_INFO_ROTATION_MESSAGE;
+
 E_API void                e_info_server_hook_set(const char *module_name, E_Info_Hook_Cb func, void *data);
 E_API E_Info_Server_Hook *e_info_server_hook_add(E_Info_Server_Hook_Point hookpoint, E_Info_Server_Hook_Cb func, const void *data);
 E_API void                e_info_server_hook_del(E_Info_Server_Hook *ph);
 
 #endif
-#endif
index ea93cd1b55443b550d323cc0fbca135fae470a88..1e110ae61cd8c3e41ea6807dd936d4fad835bb4e 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _E_INFO_SHARED_TYPES_
 #define _E_INFO_SHARED_TYPES_
 
+#include <Eina.h>
+
 typedef enum
 {
    E_INFO_ROTATION_MESSAGE_SET,
index 6f8030f20385e049b277bbe8ffd1e52b420b0694..02bec41a1965af0dbaea1ba96b0f8768528dc1ff 100644 (file)
@@ -1,9 +1,3 @@
-#ifdef E_TYPEDEFS
-
-typedef struct _E_Input E_Input;
-
-#else
-
 #ifndef E_INPUT_H
 #define E_INPUT_H
 
@@ -15,9 +9,16 @@ typedef struct _E_Input E_Input;
 #define E_INPUT_TYPE (int)0xE0b0beaf
 #define E_INPUT_REQUEST_SERVER ((void *)0x1)
 
-EINTERN extern int E_INPUT_EVENT_SEAT_ADD;
-EINTERN extern int E_EVENT_INPUT_ENABLED;
-EINTERN extern int E_EVENT_INPUT_DISABLED;
+typedef struct _E_Input E_Input;
+typedef struct _E_Input_Device E_Input_Device;
+typedef struct _E_Input_Backend E_Input_Backend;
+typedef struct _E_Input_Evdev E_Input_Evdev;
+typedef struct _E_Input_Seat E_Input_Seat;
+typedef struct _E_Input_Coord E_Input_Coord;
+
+typedef void (*e_input_relative_motion_cb)(double dx[2], double dy[2], uint64_t time_us);
+typedef void (*e_input_keyboard_grab_key_cb)(uint32_t keycode, uint32_t state, uint32_t timestamp, void *dev);
+
 
 typedef enum _E_Input_Hook_Point
 {
@@ -51,15 +52,6 @@ typedef enum _E_Input_Libinput_Backend
    E_INPUT_LIBINPUT_BACKEND_PATH
 } E_Input_Libinput_Backend;
 
-typedef struct _E_Input_Device E_Input_Device;
-typedef struct _E_Input_Backend E_Input_Backend;
-typedef struct _E_Input_Evdev E_Input_Evdev;
-typedef struct _E_Input_Seat E_Input_Seat;
-typedef struct _E_Input_Coord E_Input_Coord;
-
-typedef void (*e_input_relative_motion_cb)(double dx[2], double dy[2], uint64_t time_us);
-typedef void (*e_input_keyboard_grab_key_cb)(uint32_t keycode, uint32_t state, uint32_t timestamp, void *dev);
-
 struct _E_Input
 {
    Ecore_Window window;
@@ -93,6 +85,10 @@ struct _E_Input_Device
    unsigned int server_blocked;
 };
 
+EINTERN extern int E_INPUT_EVENT_SEAT_ADD;
+EINTERN extern int E_EVENT_INPUT_ENABLED;
+EINTERN extern int E_EVENT_INPUT_DISABLED;
+
 E_API const Eina_List *e_input_devices_get(void);
 E_API Eina_Bool        e_input_device_pointer_warp(E_Input_Device *dev, int x, int y);
 E_API Eina_Bool        e_input_device_mouse_accel_speed_set(E_Input_Device *dev, double speed);
@@ -110,4 +106,3 @@ E_API pid_t                 e_input_main_thread_id_get();
 E_API E_Input_Event_Source *e_input_event_source_get();
 
 #endif
-#endif
index 2cf4615ab1789aa40d0be7daf967e3f870039bc1..66ec7134d13fb94cb9829f89df5061ed61253c07 100644 (file)
@@ -1,4 +1,42 @@
-#ifdef E_TYPEDEFS
+#ifndef E_KEYROUTER_H
+#define E_KEYROUTER_H
+
+#include <e_device_intern.h>
+#include <e_input_event.h>
+#include <e_config_data.h>
+
+#include <Eina.h>
+#include <Ecore_Input.h>
+
+#include <wayland-server.h>
+#include <tizen-extension-server-protocol.h>
+
+#ifdef HAVE_CYNARA
+#include <cynara-client.h>
+#endif
+
+#define CHECK_ERR(val) if (TIZEN_KEYROUTER_ERROR_NONE != val) return;
+#define CHECK_ERR_VAL(val) if (TIZEN_KEYROUTER_ERROR_NONE != val) return val;
+#define CHECK_NULL(val) if (!val) return;
+#define CHECK_NULL_VAL(val) if (!val) return val;
+
+#define KLERR(msg, ARG...) ERR(msg, ##ARG)
+#define KLWRN(msg, ARG...) WRN(msg, ##ARG)
+#define KLINF(msg, ARG...) INF(msg, ##ARG)
+#define KLDBG(msg, ARG...) DBG(msg, ##ARG)
+
+#define TIZEN_KEYROUTER_MODE_PRESSED        TIZEN_KEYROUTER_MODE_REGISTERED+1
+#define TIZEN_KEYROUTER_MODE_PICTURE_OFF        TIZEN_KEYROUTER_MODE_REGISTERED+2
+
+typedef unsigned long Time;
+
+typedef struct _E_Keyrouter E_Keyrouter;
+typedef struct _E_Keyrouter* E_KeyrouterPtr;
+typedef struct _E_Keyrouter_Grab_Request E_Keyrouter_Grab_Request;
+typedef struct _E_Keyrouter_Ungrab_Request E_Keyrouter_Ungrab_Request;
+
+typedef struct _E_Keyrouter_Conf_Edd E_Keyrouter_Conf_Edd;
+typedef struct _E_Keyrouter_Config_Data E_Keyrouter_Config_Data;
 
 typedef struct _E_Keyrouter_Intercept_Hook E_Keyrouter_Intercept_Hook;
 typedef struct _E_Keyrouter_Info E_Keyrouter_Info;
@@ -12,6 +50,77 @@ typedef struct _E_Keyrouter_Event_Data E_Keyrouter_Event_Data;
 typedef struct _E_Keyrouter_Event_Key_Long E_Keyrouter_Event_Key_Long;
 typedef struct _E_Keyrouter_Event_Key_Composition E_Keyrouter_Event_Key_Composition;
 
+typedef Eina_Bool (*E_Keyrouter_Intercept_Hook_Cb) (void *data, int type, Ecore_Event_Key *event);
+
+struct _E_Keyrouter_Conf_Edd
+{
+   int num_keycode;                   // The numbers of keyrouted keycodes defined by xkb-tizen-data
+   int max_keycode;                   // The max value of keycodes
+   int pictureoff_disabled;           // To disable picture_off feature.
+   double composition_key_wait_time;  // The time of waiting to composition key's press events
+   Eina_List *KeyList;                // The list of routed key data: E_Keyrouter_Tizen_HWKey
+};
+
+struct _E_Keyrouter_Config_Data
+{
+   E_Config_DD *conf_edd;
+   E_Config_DD *conf_hwkeys_edd;
+   E_Keyrouter_Conf_Edd *conf;
+};
+
+struct _E_Keyrouter
+{
+   struct wl_global *global;
+   Ecore_Event_Filter *ef_handler;
+   Eina_List *handlers;
+   Eina_List *resources;
+   Eina_List *ignore_list;
+
+   E_Keyrouter_Config_Data *conf;
+
+   E_Keyrouter_Grabbed_Key *HardKeys;
+   Eina_List *grab_surface_list;
+   Eina_List *grab_client_list;
+
+   Eina_Bool isWindowStackChanged;
+   int numTizenHWKeys;
+   int max_tizen_hwkeys;
+#ifdef HAVE_CYNARA
+   cynara *p_cynara;
+#endif
+   int isPictureOffEnabled;
+   Eina_Bool pictureoff_disabled;
+
+   struct
+     {
+        gint waiting_timer;
+        double waiting_time;
+
+        int key[2];
+     } composition_key;
+   struct
+     {
+        gint timer;
+        int key;
+     } longkey;
+
+   E_Input_Event_Handler *_key_down_handler;
+   E_Input_Event_Handler *_key_up_handler;
+   GMutex event_handler_mutex;
+   GRecMutex grab_key_mutex;
+};
+
+struct _E_Keyrouter_Grab_Request {
+   int key;
+   int mode;
+   int err;
+};
+
+struct _E_Keyrouter_Ungrab_Request {
+   int key;
+   int err;
+};
+
 typedef enum _E_Keyrouter_Intercept_Hook_Point
 {
    E_KEYROUTER_INTERCEPT_HOOK_BEFORE_KEYROUTING,
@@ -26,14 +135,6 @@ typedef enum _E_Keyrouter_Client_Status
    E_KRT_CSTAT_UNGRAB
 } E_Keyrouter_Client_Status;
 
-typedef Eina_Bool (*E_Keyrouter_Intercept_Hook_Cb) (void *data, int type, Ecore_Event_Key *event);
-
-#else
-#ifndef E_KEYROUTER_H
-#define E_KEYROUTER_H
-
-extern E_API E_Keyrouter_Info e_keyrouter;
-
 struct _E_Keyrouter_Intercept_Hook
 {
    EINA_INLIST;
@@ -121,6 +222,9 @@ struct _E_Keyrouter_Event_Key_Composition
    void *data;
 };
 
+extern E_API E_KeyrouterPtr krt;
+extern E_API E_Keyrouter_Info e_keyrouter;
+
 E_API E_Keyrouter_Intercept_Hook *e_keyrouter_intercept_hook_add(E_Keyrouter_Intercept_Hook_Point hookpoint, E_Keyrouter_Intercept_Hook_Cb func, const void *data);
 E_API void                        e_keyrouter_intercept_hook_del(E_Keyrouter_Intercept_Hook *ch);
 E_API Eina_Bool                   e_keyrouter_intercept_hook_call(E_Keyrouter_Intercept_Hook_Point hookpoint, int type, Ecore_Event_Key *event);
@@ -128,6 +232,42 @@ E_API Eina_Bool                   e_keyrouter_intercept_hook_call(E_Keyrouter_In
 EAPI void e_keyrouter_keygrab_list_lock();
 EAPI void e_keyrouter_keygrab_list_unlock();
 
+
+int e_keyrouter_set_keygrab_in_list(struct wl_resource *surface, struct wl_client *client, uint32_t key, uint32_t mode);
+int e_keyrouter_prepend_to_keylist(struct wl_resource *surface, struct wl_client *wc, uint32_t key, uint32_t mode, Eina_Bool focused);
+void e_keyrouter_find_and_remove_client_from_list(struct wl_resource *surface, struct wl_client *wc, uint32_t key, uint32_t mode);
+void e_keyrouter_remove_client_from_list(struct wl_resource *surface, struct wl_client *wc);
+int e_keyrouter_find_key_in_list(struct wl_resource *surface, struct wl_client *wc, uint32_t key);
+
+Eina_Bool e_keyrouter_process_key_event(void *event, int type);
+
+struct wl_resource *e_keyrouter_util_get_surface_from_eclient(E_Client *client);
+int e_keyrouter_util_get_pid(struct wl_client *client, struct wl_resource *surface);
+char *e_keyrouter_util_cmd_get_from_pid(int pid);
+char *e_keyrouter_util_process_name_get_from_cmd(char *cmd);
+const char *e_keyrouter_mode_to_string(uint32_t mode);
+
+void e_keyrouter_conf_init(E_Keyrouter_Config_Data *kconfig);
+void e_keyrouter_conf_deinit(E_Keyrouter_Config_Data *kconfig);
+int e_keyrouter_cb_picture_off(const int option, void *data);
+
+Eina_Bool e_keyrouter_wl_init(void);
+void e_keyrouter_wl_shutdown(void);
+int e_keyrouter_wl_add_client_destroy_listener(struct wl_client *client);
+int e_keyrouter_wl_add_surface_destroy_listener(struct wl_resource *surface);
+#ifdef HAVE_CYNARA
+Eina_Bool e_keyrouter_wl_util_do_privilege_check(struct wl_client *client, uint32_t mode, uint32_t keycode);
 #endif
+
+int e_keyrouter_keygrab_set(struct wl_client *client, struct wl_resource *surface, int key, int mode);
+int e_keyrouter_keygrab_unset(struct wl_client *client, struct wl_resource *surface, int key);
+
+Eina_Bool e_keyrouter_event_process(void *event, E_Device *dev, int type);
+
+Eina_Bool e_keyrouter_wl_key_send(Ecore_Event_Key *ev, E_Device *dev, Eina_Bool pressed, struct wl_client *client, struct wl_resource *surface, Eina_Bool focused);
+void e_keyrouter_keycancel_send(struct wl_client *client, struct wl_resource *surface, unsigned int key);
+void e_keyrouter_wl_event_surface_send(struct wl_resource *surface, int key, int mode);
+
+
 #endif
 
index 6b9fd39e3591516c444795a16e098edcda507a1e..e3ff992c178fcccc53752158d1dec95d898590fb 100644 (file)
@@ -1,143 +1,9 @@
-#include "e.h"
+
 #include "e_keyrouter.h"
 #include "e_input_event.h"
-#include "e_device_intern.h"
 
-#ifdef HAVE_CYNARA
-#include <cynara-session.h>
-#include <cynara-client.h>
-#include <cynara-creds-socket.h>
-#include <sys/smack.h>
-#endif
 
+#include <wayland-server.h>
 #include <tizen-extension-server-protocol.h>
 
-#define CHECK_ERR(val) if (TIZEN_KEYROUTER_ERROR_NONE != val) return;
-#define CHECK_ERR_VAL(val) if (TIZEN_KEYROUTER_ERROR_NONE != val) return val;
-#define CHECK_NULL(val) if (!val) return;
-#define CHECK_NULL_VAL(val) if (!val) return val;
-
-#define KLERR(msg, ARG...) ERR(msg, ##ARG)
-#define KLWRN(msg, ARG...) WRN(msg, ##ARG)
-#define KLINF(msg, ARG...) INF(msg, ##ARG)
-#define KLDBG(msg, ARG...) DBG(msg, ##ARG)
-
-typedef struct _E_Keyrouter E_Keyrouter;
-typedef struct _E_Keyrouter* E_KeyrouterPtr;
-typedef struct _E_Keyrouter_Grab_Request E_Keyrouter_Grab_Request;
-typedef struct _E_Keyrouter_Ungrab_Request E_Keyrouter_Ungrab_Request;
-
-typedef struct _E_Keyrouter_Conf_Edd E_Keyrouter_Conf_Edd;
-typedef struct _E_Keyrouter_Config_Data E_Keyrouter_Config_Data;
-
-#define TIZEN_KEYROUTER_MODE_PRESSED        TIZEN_KEYROUTER_MODE_REGISTERED+1
-#define TIZEN_KEYROUTER_MODE_PICTURE_OFF        TIZEN_KEYROUTER_MODE_REGISTERED+2
-
-typedef unsigned long Time;
-
-extern E_KeyrouterPtr krt;
-
-struct _E_Keyrouter_Conf_Edd
-{
-   int num_keycode;                   // The numbers of keyrouted keycodes defined by xkb-tizen-data
-   int max_keycode;                   // The max value of keycodes
-   int pictureoff_disabled;           // To disable picture_off feature.
-   double composition_key_wait_time;  // The time of waiting to composition key's press events
-   Eina_List *KeyList;                // The list of routed key data: E_Keyrouter_Tizen_HWKey
-};
-
-struct _E_Keyrouter_Config_Data
-{
-   E_Config_DD *conf_edd;
-   E_Config_DD *conf_hwkeys_edd;
-   E_Keyrouter_Conf_Edd *conf;
-};
-
-struct _E_Keyrouter
-{
-   struct wl_global *global;
-   Ecore_Event_Filter *ef_handler;
-   Eina_List *handlers;
-   Eina_List *resources;
-   Eina_List *ignore_list;
-
-   E_Keyrouter_Config_Data *conf;
-
-   E_Keyrouter_Grabbed_Key *HardKeys;
-   Eina_List *grab_surface_list;
-   Eina_List *grab_client_list;
-
-   Eina_Bool isWindowStackChanged;
-   int numTizenHWKeys;
-   int max_tizen_hwkeys;
-#ifdef HAVE_CYNARA
-   cynara *p_cynara;
-#endif
-   int isPictureOffEnabled;
-   Eina_Bool pictureoff_disabled;
-
-   struct
-     {
-        gint waiting_timer;
-        double waiting_time;
-
-        int key[2];
-     } composition_key;
-   struct
-     {
-        gint timer;
-        int key;
-     } longkey;
-
-   E_Input_Event_Handler *_key_down_handler;
-   E_Input_Event_Handler *_key_up_handler;
-   GMutex event_handler_mutex;
-   GRecMutex grab_key_mutex;
-};
-
-struct _E_Keyrouter_Grab_Request {
-   int key;
-   int mode;
-   int err;
-};
-
-struct _E_Keyrouter_Ungrab_Request {
-   int key;
-   int err;
-};
-
-int e_keyrouter_set_keygrab_in_list(struct wl_resource *surface, struct wl_client *client, uint32_t key, uint32_t mode);
-int e_keyrouter_prepend_to_keylist(struct wl_resource *surface, struct wl_client *wc, uint32_t key, uint32_t mode, Eina_Bool focused);
-void e_keyrouter_find_and_remove_client_from_list(struct wl_resource *surface, struct wl_client *wc, uint32_t key, uint32_t mode);
-void e_keyrouter_remove_client_from_list(struct wl_resource *surface, struct wl_client *wc);
-int e_keyrouter_find_key_in_list(struct wl_resource *surface, struct wl_client *wc, uint32_t key);
-
-Eina_Bool e_keyrouter_process_key_event(void *event, int type);
-
-struct wl_resource *e_keyrouter_util_get_surface_from_eclient(E_Client *client);
-int e_keyrouter_util_get_pid(struct wl_client *client, struct wl_resource *surface);
-char *e_keyrouter_util_cmd_get_from_pid(int pid);
-char *e_keyrouter_util_process_name_get_from_cmd(char *cmd);
-const char *e_keyrouter_mode_to_string(uint32_t mode);
-
-void e_keyrouter_conf_init(E_Keyrouter_Config_Data *kconfig);
-void e_keyrouter_conf_deinit(E_Keyrouter_Config_Data *kconfig);
-int e_keyrouter_cb_picture_off(const int option, void *data);
-
-Eina_Bool e_keyrouter_wl_init(void);
-void e_keyrouter_wl_shutdown(void);
-int e_keyrouter_wl_add_client_destroy_listener(struct wl_client *client);
-int e_keyrouter_wl_add_surface_destroy_listener(struct wl_resource *surface);
-#ifdef HAVE_CYNARA
-Eina_Bool e_keyrouter_wl_util_do_privilege_check(struct wl_client *client, uint32_t mode, uint32_t keycode);
-#endif
-
-int e_keyrouter_keygrab_set(struct wl_client *client, struct wl_resource *surface, int key, int mode);
-int e_keyrouter_keygrab_unset(struct wl_client *client, struct wl_resource *surface, int key);
-
-Eina_Bool e_keyrouter_event_process(void *event, E_Device *dev, int type);
-
-Eina_Bool e_keyrouter_wl_key_send(Ecore_Event_Key *ev, E_Device *dev, Eina_Bool pressed, struct wl_client *client, struct wl_resource *surface, Eina_Bool focused);
-void e_keyrouter_keycancel_send(struct wl_client *client, struct wl_resource *surface, unsigned int key);
-void e_keyrouter_wl_event_surface_send(struct wl_resource *surface, int key, int mode);
 
index 64f9bafb25439b55295843dfc09f6ab72a98396e..cb159479efd5a906432f3c969b8f7e41a7cef5ce 100644 (file)
@@ -1,5 +1,3 @@
-#ifdef E_TYPEDEFS
-#else
 #ifndef E_LAYOUT_H
 #define E_LAYOUT_H
 
@@ -13,4 +11,3 @@ E_API void         e_layout_unpack            (Evas_Object *obj);
 E_API Eina_List   *e_layout_children_get(Evas_Object *obj);
 
 #endif
-#endif
index 0b3bbc4a5edacbf9509a9d10e9ab559ad1176e8b..2b04954d4d01eccf7ab35cee85538b6a52d3f51c 100644 (file)
@@ -1,9 +1,9 @@
-#ifdef E_TYPEDEFS
-
-#else
 #ifndef E_LOG_H
 #define E_LOG_H
 
+#include <e_client.h>
+#include <e_pixmap.h>
+
 #ifdef HAVE_DLOG
 # include <dlog.h>
 #  ifdef LOG_TAG
 # define DLOG_BACKTRACE
 #endif
 
+static inline Ecore_Window
+e_log_client_util_win_get(const E_Client *ec)
+{
+   if (!ec) return 0;
+   if (!ec->pixmap) return 0;
+   return e_pixmap_window_get(ec->pixmap);
+}
+
 # if (E_LOGGING >= 2) /* new version */
 #  define ELOG(t, ec)                                       \
    do                                                       \
      {                                                      \
         if (ec)                                             \
           INF("%10.10s|w:0x%08zx|ec:%8p|",                  \
-              (t), (e_client_util_win_get(ec)), (ec));      \
+              (t), (e_log_client_util_win_get(ec)), (ec));      \
         else                                                \
           INF("%10.10s|            |             |",        \
               (t));                                         \
      {                                                      \
         if (ec)                                             \
           INF("%10.10s|w:0x%08zx|ec:%8p|"f,                 \
-              (t), (e_client_util_win_get(ec)), (ec), ##x); \
+              (t), (e_log_client_util_win_get(ec)), (ec), ##x); \
         else                                                \
           INF("%10.10s|            |             |"f,       \
               (t), ##x);                                    \
      {                                                      \
         if (ec)                                             \
           DBG("%10.10s|w:0x%08zx|ec:%8p|"f,                 \
-              (t), (e_client_util_win_get(ec)), (ec), ##x); \
+              (t), (e_log_client_util_win_get(ec)), (ec), ##x); \
         else                                                \
           DBG("%10.10s|            |             |"f,       \
               (t), ##x);                                    \
      {                                                      \
         if (ec)                                             \
           ERR("%10.10s|w:0x%08zx|ec:%8p|"f,                 \
-              (t), (e_client_util_win_get(ec)), (ec), ##x); \
+              (t), (e_log_client_util_win_get(ec)), (ec), ##x); \
         else                                                \
           ERR("%10.10s|            |             |"f,       \
               (t), ##x);                                    \
      {                                                      \
         if (ec)                                             \
           INF("%10.10s|w:0x%08zx|ec:%8p|",                  \
-              (t), (e_client_util_win_get(ec)), (ec));      \
+              (t), (e_log_client_util_win_get(ec)), (ec));      \
         else                                                \
           INF("%10.10s|            |             |",        \
               (t));                                         \
      {                                                      \
         if (ec)                                             \
           INF("%10.10s|w:0x%08zx|ec:%8p|"f,                 \
-              (t), (e_client_util_win_get(ec)), (ec), ##x); \
+              (t), (e_log_client_util_win_get(ec)), (ec), ##x); \
         else                                                \
           INF("%10.10s|            |             |"f,       \
               (t), ##x);                                    \
      {                                                      \
         if (ec)                                             \
           DBG("%10.10s|w:0x%08zx|ec:%8p|"f,                 \
-              (t), (e_client_util_win_get(ec)), (ec), ##x); \
+              (t), (e_log_client_util_win_get(ec)), (ec), ##x); \
         else                                                \
           DBG("%10.10s|            |             |"f,       \
               (t), ##x);                                    \
      {                                                      \
         if (ec)                                             \
           ERR("%10.10s|w:0x%08zx|ec:%8p|"f,                 \
-              (t), (e_client_util_win_get(ec)), (ec), ##x); \
+              (t), (e_log_client_util_win_get(ec)), (ec), ##x); \
         else                                                \
           ERR("%10.10s|            |             |"f,       \
               (t), ##x);                                    \
@@ -183,13 +191,6 @@ typedef enum _E_Log_Type
 
 extern E_API int e_log_dom;
 
-#ifdef HAVE_DLOG
-EINTERN void e_log_dlog_enable(Eina_Bool enable);
-#endif
-EINTERN Eina_Bool e_log_path_set(const char *path);
-
-EINTERN int e_log_init(void);
-EINTERN int e_log_shutdown(void);
 #else
 #undef DBG
 #undef INF
@@ -214,5 +215,36 @@ EINTERN int e_log_shutdown(void);
 #define DLOG_BACKTRACE
 #endif
 
+#if 0
+#define REFD(obj, num) \
+   do { \
+      printf("%p <- %5i <- ref   | %s-%i\n", \
+             obj, E_OBJECT(obj)->references, \
+             __FILE__, num); \
+   } while (0)
+
+#define UNREFD(obj, num) \
+   do { \
+      printf("%p <- %5i <- unref | %s-%i\n", \
+             obj, E_OBJECT(obj)->references, \
+             __FILE__, num); \
+   } while (0)
+
+#define DELD(obj, num) \
+   do { \
+      printf("%p <- %5i <- del   | %s-%i\n", \
+             obj, E_OBJECT(obj)->references, \
+             __FILE__, num); \
+   } while (0)
+#else
+# define REFD(obj, num)
+# define UNREFD(obj, num)
+# define DELD(obj, num)
 #endif
+
+E_API double          e_main_ts(const char *str);
+E_API double          e_main_ts_begin(const char *str);
+E_API double          e_main_ts_end(const char *str);
+
 #endif
+
diff --git a/src/include/e_log_client.h b/src/include/e_log_client.h
new file mode 100644 (file)
index 0000000..be2f30f
--- /dev/null
@@ -0,0 +1,124 @@
+#ifndef E_LOG_CLIENT_H
+#define E_LOG_CLIENT_H
+
+#include "e_log_intern.h"
+#include "e_client_intern.h"
+#include "e_pixmap_intern.h"
+
+#ifdef E_LOGGING
+
+static inline Ecore_Window
+e_log_client_util_win_get(const E_Client *ec)
+{
+   if (!ec) return 0;
+   if (!ec->pixmap) return 0;
+   return e_pixmap_window_get(ec->pixmap);
+}
+
+# if (E_LOGGING >= 2) /* new version */
+#  define ELOG(t, ec)                                       \
+   do                                                       \
+     {                                                      \
+        if (ec)                                             \
+          INF("%10.10s|w:0x%08zx|ec:%8p|",                  \
+              (t), (e_log_client_util_win_get(ec)), (ec));      \
+        else                                                \
+          INF("%10.10s|            |             |",        \
+              (t));                                         \
+     }                                                      \
+   while (0)
+
+#  define ELOGF(t, f, ec, x...)                             \
+   do                                                       \
+     {                                                      \
+        if (ec)                                             \
+          INF("%10.10s|w:0x%08zx|ec:%8p|"f,                 \
+              (t), (e_log_client_util_win_get(ec)), (ec), ##x); \
+        else                                                \
+          INF("%10.10s|            |             |"f,       \
+              (t), ##x);                                    \
+     }                                                      \
+   while (0)
+
+#  define ELOGFD(t, f, ec, x...)                            \
+   do                                                       \
+     {                                                      \
+        if (ec)                                             \
+          DBG("%10.10s|w:0x%08zx|ec:%8p|"f,                 \
+              (t), (e_log_client_util_win_get(ec)), (ec), ##x); \
+        else                                                \
+          DBG("%10.10s|            |             |"f,       \
+              (t), ##x);                                    \
+     }                                                      \
+   while (0)
+
+#  define ELOGFE(t, f, ec, x...)                            \
+   do                                                       \
+     {                                                      \
+        if (ec)                                             \
+          ERR("%10.10s|w:0x%08zx|ec:%8p|"f,                 \
+              (t), (e_log_client_util_win_get(ec)), (ec), ##x); \
+        else                                                \
+          ERR("%10.10s|            |             |"f,       \
+              (t), ##x);                                    \
+     }                                                      \
+   while (0)
+# else /* old version */
+#  define ELOG(t, cp, ec)                                   \
+   do                                                       \
+     {                                                      \
+        if (ec)                                             \
+          INF("%10.10s|w:0x%08zx|ec:%8p|",                  \
+              (t), (e_log_client_util_win_get(ec)), (ec));      \
+        else                                                \
+          INF("%10.10s|            |             |",        \
+              (t));                                         \
+     }                                                      \
+   while (0)
+
+#  define ELOGF(t, f, cp, ec, x...)                         \
+   do                                                       \
+     {                                                      \
+        if (ec)                                             \
+          INF("%10.10s|w:0x%08zx|ec:%8p|"f,                 \
+              (t), (e_log_client_util_win_get(ec)), (ec), ##x); \
+        else                                                \
+          INF("%10.10s|            |             |"f,       \
+              (t), ##x);                                    \
+     }                                                      \
+   while (0)
+
+#  define ELOGFD(t, f, cp, ec, x...)                        \
+   do                                                       \
+     {                                                      \
+        if (ec)                                             \
+          DBG("%10.10s|w:0x%08zx|ec:%8p|"f,                 \
+              (t), (e_log_client_util_win_get(ec)), (ec), ##x); \
+        else                                                \
+          DBG("%10.10s|            |             |"f,       \
+              (t), ##x);                                    \
+     }                                                      \
+   while (0)
+
+#  define ELOGFE(t, f, cp, ec, x...)                        \
+   do                                                       \
+     {                                                      \
+        if (ec)                                             \
+          ERR("%10.10s|w:0x%08zx|ec:%8p|"f,                 \
+              (t), (e_log_client_util_win_get(ec)), (ec), ##x); \
+        else                                                \
+          ERR("%10.10s|            |             |"f,       \
+              (t), ##x);                                    \
+     }                                                      \
+   while (0)
+# endif /* end of if (E_LOGGING >= 2) */
+#else // E_LOGGING
+
+#undef ELOG
+#undef ELOGF
+#define ELOG(...)           ;
+#define ELOGF(...)          ;
+
+#endif // E_LOGGING
+
+#endif
index 9591b4c44e43949d9f4a41995c7600289bd7b2b1..41c7056fd1e630d9fd72f024e6805bbb9fdd6f5b 100644 (file)
@@ -1,5 +1,3 @@
-#ifdef E_TYPEDEFS
-#else
 #ifndef E_MAIN_H
 #define E_MAIN_H
 
@@ -25,7 +23,7 @@ struct _E_Main_Hook
 };
 
 E_API E_Main_Hook *e_main_hook_add(E_Main_Hook_Point hookpoint, E_Main_Hook_Cb func, const void *data);
-E_API void e_main_hook_del(E_Main_Hook *ph);
+E_API void         e_main_hook_del(E_Main_Hook *ph);
 
 E_API void e_main_hook_call(E_Main_Hook_Point hookpoint);
 
@@ -34,4 +32,3 @@ extern void __gcov_flush(void);
 #endif
 
 #endif
-#endif
index 8473ce5f45a04cb6baab7345244faa5bfc7fd9e2..d0aa5f9ce0ea879ab60173f7e4e889d86ef852c0 100644 (file)
@@ -1,9 +1,10 @@
-#ifdef E_TYPEDEFS
-typedef struct _E_Map E_Map;
-#else
 #ifndef E_MAP_H
 #define E_MAP_H
 
+#include <Evas.h>
+
+typedef struct _E_Map E_Map;
+
 /* current Evas_Map is support only four points.
  * So, we're provide e_map_new without count parameter. */
 E_API E_Map           *e_map_new(void);
@@ -33,4 +34,3 @@ E_API Eina_Bool        e_map_util_zoom(E_Map *em, double zoomx, double zoomy, in
 E_API Eina_Bool        e_map_util_rotate(E_Map *em, int angle, int cx, int cy);
 
 #endif
-#endif
index 1d60a92206330cfefd4c730c4f890ef624061baa..907d703baa2b8c5c564952254f8e726c0506571f 100644 (file)
@@ -1,4 +1,5 @@
-#ifdef E_TYPEDEFS
+#ifndef E_MODULE_H
+#define E_MODULE_H
 
 #define E_MODULE_API_VERSION 17
 
@@ -7,12 +8,6 @@ typedef struct _E_Module_Api E_Module_Api;
 
 typedef struct _E_Event_Module_Update E_Event_Module_Update;
 
-#else
-#ifndef E_MODULE_H
-#define E_MODULE_H
-
-extern E_API int E_EVENT_MODULE_DEFER_JOB;
-
 struct _E_Event_Module_Update
 {
    const char *name;
@@ -48,5 +43,6 @@ struct _E_Module_Api
    const char *name;
 };
 
-#endif
+extern E_API int E_EVENT_MODULE_DEFER_JOB;
+
 #endif
index 3ac0a352be7412f219420f30bfe2d83aab36fcd4..d0943e19a4ac609f062b50e0d0ed197d7d94159b 100644 (file)
@@ -1,4 +1,8 @@
-#ifdef E_TYPEDEFS
+#ifndef E_OBJECT_H
+#define E_OBJECT_H
+
+#include <Eina.h>
+#include <Ecore.h>
 
 /* Object safety/debugging checks */
 /* */
 # endif
 #endif
 
-typedef void (*E_Object_Cleanup_Func) (void *obj);
-
-typedef struct _E_Object       E_Object;
 typedef struct _E_Object_Delfn E_Object_Delfn;
 
-#else
-#ifndef E_OBJECT_H
-#define E_OBJECT_H
-
-struct _E_Object
-{
-   int                      magic;
-   int                      type;
-   int                      references;
-   E_Object_Cleanup_Func    del_func;
-   E_Object_Cleanup_Func    cleanup_func;
-   E_Object_Cleanup_Func    free_att_func;
-   E_Object_Cleanup_Func    del_att_func;
-   E_Object_Cleanup_Func    del_delay_func;
-   Eina_Inlist             *del_fn_list;
-   void                    *data;
-   Ecore_Job               *delay_del_job;
-   int                      delay_del_ref;
-   int                      walking_list;
-   Eina_Bool                ref_debug : 1;
-   Eina_Bool                deleted : 1;
-};
-
 struct _E_Object_Delfn
 {
    EINA_INLIST;
@@ -147,4 +125,3 @@ E_API void  e_object_breadcrumb_debug    (E_Object *obj);
 */
 
 #endif
-#endif
index c9ebb043b4b161cfd4edd400ee7bdb059870e3e5..209d80df625997bcf8df81141ad00e28f1367e84 100644 (file)
@@ -1,10 +1,17 @@
-#ifdef E_TYPEDEFS
+#ifndef E_OUTPUT_H
+#define E_OUTPUT_H
+
+#include <e_zone.h>
+#include <e_comp_screen.h>
+#include <e_hwc.h>
+#include <e_client.h>
+#include <e_plane.h>
 
 #include <tbm_surface.h>
+#include <tdm.h>
 
 #define OUTPUT_NAME_LEN 64
 
-typedef struct _E_Output            E_Output;
 typedef struct _E_Output_Mode       E_Output_Mode;
 
 typedef void (*E_Output_Capture_Cb) (E_Output *output, tbm_surface_h surface, void *user_data);
@@ -17,18 +24,6 @@ typedef enum _E_Output_Dpms
    E_OUTPUT_DPMS_OFF,
 } E_OUTPUT_DPMS;
 
-typedef enum   _E_Output_Display_Mode
-{
-   E_OUTPUT_DISPLAY_MODE_NONE,
-   E_OUTPUT_DISPLAY_MODE_MIRROR,
-   E_OUTPUT_DISPLAY_MODE_PRESENTATION,
-} E_Output_Display_Mode;
-
-
-#else
-#ifndef E_OUTPUT_H
-#define E_OUTPUT_H
-
 struct _E_Output_Mode
 {
    int    w, h; // resolution width and height
@@ -165,4 +160,3 @@ E_API Eina_Bool           e_output_property_get(E_Output *output, unsigned int i
 E_API Eina_Bool           e_output_property_set(E_Output *output, unsigned int id, output_prop_value value);
 
 #endif
-#endif
index b1fb6da5cc34382b2be7ffc135f68668f5a1ed8f..4c550f11455759b82ff1147ce45995cc4a33a404 100644 (file)
@@ -1,6 +1,10 @@
-#ifdef E_TYPEDEFS
+# ifndef E_PIXMAP_H
+# define E_PIXMAP_H
+
+#include <e_client.h>
 
 typedef struct _E_Pixmap E_Pixmap;
+typedef struct _E_Pixmap_Hook E_Pixmap_Hook;
 
 typedef enum
 {
@@ -10,12 +14,6 @@ typedef enum
    E_PIXMAP_TYPE_MAX
 } E_Pixmap_Type;
 
-#else
-# ifndef E_PIXMAP_H
-# define E_PIXMAP_H
-
-typedef struct _E_Pixmap_Hook E_Pixmap_Hook;
-
 typedef enum _E_Pixmap_Hook_Point
 {
    E_PIXMAP_HOOK_NEW,
@@ -51,4 +49,3 @@ E_API void e_pixmap_hook_del(E_Pixmap_Hook *ph);
 E_API void e_pixmap_buffer_clear(E_Pixmap *cp, Eina_Bool only_free);
 
 #endif
-#endif
index 4b3dabf1f2c59f3d76d34f55e6e45bc0b422d4b2..0dc21ba41f8a8d4f9fe74bf78475bd6e8667635a 100644 (file)
@@ -1,4 +1,21 @@
-#ifdef E_TYPEDEFS
+#ifndef E_PLANE_H
+#define E_PLANE_H
+
+//TODO: This file will be deprecated and will be removed.
+
+#include <e_comp_screen.h>
+#include <e_output.h>
+#include <e_plane_renderer.h>
+#include <e_comp_wl.h>
+#include <e_plane_renderer.h>
+#include <e_client.h>
+
+#define E_PLANE_TYPE (int)0xE0b11001
+
+typedef struct _E_Plane_Commit_Data          E_Plane_Commit_Data;
+typedef struct _E_Event_Plane_Win_Change     E_Event_Plane_Win_Change;
+typedef struct _E_Plane_Hook                 E_Plane_Hook;
+typedef void (*E_Plane_Hook_Cb) (void *data, E_Plane *plane);
 
 typedef enum _E_Plane_Type
 {
@@ -23,22 +40,6 @@ typedef enum _E_Plane_Color
    E_PLANE_COLOR_RGB
 } E_Plane_Color;
 
-typedef struct _E_Plane                      E_Plane;
-typedef struct _E_Plane_Commit_Data          E_Plane_Commit_Data;
-typedef struct _E_Event_Plane_Win_Change     E_Event_Plane_Win_Change;
-typedef struct _E_Plane_Hook                 E_Plane_Hook;
-typedef void (*E_Plane_Hook_Cb) (void *data, E_Plane *plane);
-
-#else
-#ifndef E_PLANE_H
-#define E_PLANE_H
-
-#define E_PLANE_TYPE (int)0xE0b11001
-
-#include "e_comp_screen.h"
-#include "e_output.h"
-#include "e_plane_renderer.h"
-#include "e_comp_wl.h"
 
 struct _E_Plane
 {
@@ -230,4 +231,3 @@ E_API E_Plane_Hook          *e_plane_hook_add(E_Plane_Hook_Point hookpoint, E_Pl
 E_API void                   e_plane_hook_del(E_Plane_Hook *ch);
 
 #endif
-#endif
index a06b88c854d5fb2d601fceb144431a7300e79fcd..4f42e655cb40ca5e02c6cb1a4cfb0d16b4a0ce3e 100644 (file)
@@ -1,4 +1,14 @@
-#ifdef E_TYPEDEFS
+#ifndef E_PLANE_RENDERER_H
+#define E_PLANE_RENDERER_H
+
+//TODO: This file will be deprecated and will be removed.
+
+#include <e_comp_screen.h>
+#include <e_output.h>
+#include <e_plane.h>
+
+typedef struct _E_Plane_Renderer_Client      E_Plane_Renderer_Client;
+typedef struct _E_Plane_Renderer_Buffer      E_Plane_Renderer_Buffer;
 
 typedef enum _E_Plane_Renderer_State
 {
@@ -8,17 +18,6 @@ typedef enum _E_Plane_Renderer_State
    E_PLANE_RENDERER_STATE_PENDING_DEACTIVATE,
 } E_Plane_Renderer_State;
 
-typedef struct _E_Plane_Renderer             E_Plane_Renderer;
-typedef struct _E_Plane_Renderer_Client      E_Plane_Renderer_Client;
-typedef struct _E_Plane_Renderer_Buffer      E_Plane_Renderer_Buffer;
-#else
-#ifndef E_PLANE_RENDERER_H
-#define E_PLANE_RENDERER_H
-
-#include "e_comp_screen.h"
-#include "e_output.h"
-#include "e_plane.h"
-
 struct _E_Plane_Renderer {
    tbm_surface_queue_h tqueue;
    int tqueue_width;
@@ -120,4 +119,3 @@ EINTERN void                       e_plane_renderer_hwc_trace_debug(Eina_Bool on
 EINTERN void                       e_plane_renderer_show_state(E_Plane_Renderer *renderer);
 
 #endif
-#endif
index b1d4f8bbfcb0bb267bddefac913c4d3111ca8554..63f63775a993e6ad20b04fbed257d25cb4574123 100644 (file)
@@ -1,8 +1,17 @@
-#ifdef E_TYPEDEFS
+#ifndef E_POINTER_H
+#define E_POINTER_H
+
+#include <e_object.h>
+
+#include <Ecore.h>
+#include <Ecore_Evas.h>
+#include <Evas.h>
 
 typedef struct _E_Pointer E_Pointer;
 typedef struct _E_Pointer_Hook E_Pointer_Hook;
 
+typedef void (*E_Pointer_Hook_Cb)(void *data, E_Pointer *ptr);
+
 typedef enum
 {
    /* These are compatible with netwm */
@@ -34,12 +43,6 @@ typedef enum _E_Pointer_Hook_Point
    E_POINTER_HOOK_LAST,
 } E_Pointer_Hook_Point;
 
-typedef void (*E_Pointer_Hook_Cb)(void *data, E_Pointer *ptr);
-
-#else
-#ifndef E_POINTER_H
-#define E_POINTER_H
-
 struct _E_Pointer
 {
    E_Object e_obj_inherit;
@@ -79,5 +82,4 @@ E_API void       e_pointer_rotation_set(E_Pointer *ptr, int rotation);
 E_API E_Pointer_Hook *e_pointer_hook_add(E_Pointer_Hook_Point hookpoint, E_Pointer_Hook_Cb func, const void *data);
 E_API void            e_pointer_hook_del(E_Pointer_Hook *ch);
 
-# endif
 #endif
index aad2863c8e053f566646fd604b16d159fa1306ee..caef88366ccf290ef081e7a02e23c6e74577d224 100644 (file)
@@ -1,4 +1,11 @@
-# ifdef E_TYPEDEFS
+# ifndef E_POLICY_H
+# define E_POLICY_H
+
+#include <e_client.h>
+#include <e_zone.h>
+#include <e_desk.h>
+#include <e_module.h>
+
 typedef struct _E_Policy_Desk          E_Policy_Desk;
 typedef struct _E_Policy_Client        E_Policy_Client;
 typedef struct _E_Policy_Softkey       E_Policy_Softkey;
@@ -87,10 +94,6 @@ typedef enum
    E_QUICKPANEL_REGION_TYPE_CONTENTS = 1,
 } E_Quickpanel_Region_Type;
 
-# else
-# ifndef E_POLICY_H
-# define E_POLICY_H
-
 struct _E_Policy_Desk
 {
    E_Desk          *desk;
@@ -221,4 +224,3 @@ E_API void      e_policy_allow_user_geometry_set(E_Client *ec, Eina_Bool set);
 E_API Eina_Bool e_policy_allow_user_geometry_get(E_Client *ec);
 
 #endif
-#endif
index 80d6174b5aea6dcb20567489e1d6208a304a6d84..560b6ac05800eb6bd6c6dd789043888778f0e132 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_POLICY_PRIVATE_DATA_H
 #define E_POLICY_PRIVATE_DATA_H
 
+#include <Eina.h>
+
 /* define layer values here */
 typedef enum {
      E_POLICY_ANGLE_MAP_0 = 0,
index a59bc66d715916c2dbfb2f944bc9f67d7f6f7616..1dd72c7adc56dd1e8eb25320b4e61356baad12fb 100644 (file)
@@ -1,7 +1,23 @@
-#ifdef E_TYPEDEFS
+#ifndef E_POLICY_VISIBILITY_H
+#define E_POLICY_VISIBILITY_H
+
+#define E_VIS_JOB_TYPE_ALL (E_VIS_JOB_TYPE_SHOW                    | \
+                            E_VIS_JOB_TYPE_HIDE                    | \
+                            E_VIS_JOB_TYPE_RAISE                   | \
+                            E_VIS_JOB_TYPE_LOWER                   | \
+                            E_VIS_JOB_TYPE_ACTIVATE                | \
+                            E_VIS_JOB_TYPE_UNICONIFY               | \
+                            E_VIS_JOB_TYPE_UNICONIFY_BY_VISIBILITY | \
+                            E_VIS_JOB_TYPE_LAYER_LOWER             | \
+                            E_VIS_JOB_TYPE_DEFER_MOVE              | \
+                            E_VIS_JOB_TYPE_ICONIFY)
+
+typedef struct _E_Vis_Grab E_Vis_Grab;
 
 typedef struct _E_Pol_Vis_Hook E_Pol_Vis_Hook;
 
+typedef Eina_Bool (*E_Pol_Vis_Hook_Cb)(void *data, E_Client *ec);
+
 typedef enum _E_Pol_Vis_Hook_Type
 {
    E_POL_VIS_HOOK_TYPE_FG_SET,
@@ -26,25 +42,6 @@ typedef enum _E_Vis_Job_Type
    E_VIS_JOB_TYPE_ICONIFY                  = (1 << 9),
 } E_Vis_Job_Type;
 
-#define E_VIS_JOB_TYPE_ALL (E_VIS_JOB_TYPE_SHOW                    | \
-                            E_VIS_JOB_TYPE_HIDE                    | \
-                            E_VIS_JOB_TYPE_RAISE                   | \
-                            E_VIS_JOB_TYPE_LOWER                   | \
-                            E_VIS_JOB_TYPE_ACTIVATE                | \
-                            E_VIS_JOB_TYPE_UNICONIFY               | \
-                            E_VIS_JOB_TYPE_UNICONIFY_BY_VISIBILITY | \
-                            E_VIS_JOB_TYPE_LAYER_LOWER             | \
-                            E_VIS_JOB_TYPE_DEFER_MOVE              | \
-                            E_VIS_JOB_TYPE_ICONIFY)
-
-typedef Eina_Bool (*E_Pol_Vis_Hook_Cb)(void *data, E_Client *ec);
-
-#else
-#ifndef _E_POLICY_VISIBILITY_H_
-#define _E_POLICY_VISIBILITY_H_
-
-typedef struct _E_Vis_Grab E_Vis_Grab;
-
 E_API Eina_Bool                   e_policy_visibility_client_is_activity(E_Client *ec);
 E_API Eina_Bool                   e_policy_visibility_client_lower(E_Client *ec);
 E_API E_Vis_Grab                 *e_policy_visibility_client_grab_get(E_Client *ec, const char *name);
@@ -56,4 +53,3 @@ E_API E_Pol_Vis_Hook             *e_policy_visibility_hook_add(E_Pol_Vis_Hook_Ty
 E_API void                        e_policy_visibility_hook_del(E_Pol_Vis_Hook *h);
 
 #endif
-#endif
index 0fc025f5e5549781242f7a8022bca69c8f9c397c..605cdf870848f86199886d064d8a54b5c336d9af 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef E_POLICY_WL_H
 #define E_POLICY_WL_H
 
+#include <e_client.h>
+#include <e_policy.h>
+
 typedef struct _E_Policy_Wl_Hook E_Policy_Wl_Hook;
 
 typedef void (*E_Policy_Wl_Hook_Cb)(void *data, pid_t pid);
index 4c9c5465c205527cd167fd1a1ddc4259e7f3699a..f2b238100cb6ed0828a72781a0f0e297030d645a 100644 (file)
@@ -1,10 +1,6 @@
-#ifdef E_TYPEDEFS
-
-#else
 #ifndef E_PREFIX_H
 #define E_PREFIX_H
 
 E_API size_t      e_prefix_data_snprintf(char *dst, size_t size, const char *fmt, ...) EINA_PRINTF(3, 4);
 
 #endif
-#endif
index 238d4c5972243e155dc9b20f997e8314f80e9296..e59393e53f0851137d304c35b5eae99170b128a3 100644 (file)
@@ -1,4 +1,5 @@
-#ifdef E_TYPEDEFS
+#ifndef E_PRESENTATION_TIME_H
+#define E_PRESENTATION_TIME_H
 
 typedef struct _E_Presentation_Time_Container E_Presentation_Time_Container;
 
@@ -7,9 +8,4 @@ struct _E_Presentation_Time_Container
    Eina_List *presentation_feedbacks;
 };
 
-#else
-#ifndef E_PRESENTATION_TIME_H
-#define E_PRESENTATION_TIME_H
-
 #endif // E_PRESENTATION_TIME_H
-#endif
index c1f8e9591bfc9a101f8590b669d1b26192720897..45e0d5765633bfb3237beba0173f55480f483cbf 100644 (file)
@@ -1,5 +1,3 @@
-#ifdef E_TYPEDEFS
-#else
 #ifndef E_PRIVILEGE_H
 #define E_PRIVILEGE_H
 
@@ -7,4 +5,3 @@ extern E_API   const char *E_PRIVILEGE_GESTURE_GRAB;
 extern E_API   const char *E_PRIVILEGE_GESTURE_ACTIVATE;
 
 #endif
-#endif
index 878b4d2d6c6f063c695317d95f372e8030756318..08735e226dd1d7b86d9e01312a0e2d773064f168 100644 (file)
@@ -1,4 +1,12 @@
-# ifdef E_TYPEDEFS
+# ifndef E_PROCESSMGR_H
+# define E_PROCESSMGR_H
+
+typedef struct _E_Process_Manager E_Process_Manager;
+typedef struct _E_Process         E_Process;
+
+typedef struct _E_Process_Hook E_Process_Hook;
+
+typedef void (*E_Process_Hook_Cb)(void *data, E_Process *epro, void *user);
 
 typedef enum _E_Process_Action
 {
@@ -26,19 +34,6 @@ typedef enum _E_Process_Hook_Point
    E_PROCESS_HOOK_LAST
 } E_Process_Hook_Point;
 
-typedef struct _E_Process_Manager E_Process_Manager;
-typedef struct _E_Process E_Process;
-
-typedef struct _E_Process_Hook E_Process_Hook;
-
-typedef void (*E_Process_Hook_Cb)(void *data, E_Process *epro, void *user);
-
-
-# else
-
-# ifndef E_PROCESSMGR_H
-# define E_PROCESSMGR_H
-
 struct _E_Process
 {
    EINA_INLIST;
@@ -53,5 +48,3 @@ E_API void            e_process_hook_del(E_Process_Hook *ph);
 E_API E_Process_State e_process_state_get(pid_t pid);
 
 #endif
-#endif
-
index 99e7d5cb8572e77085790434a4d4b6e88efe0c8f..f3813937c6963fa56b9cea3aa80271dba2525727 100644 (file)
@@ -1,5 +1,3 @@
-#ifdef E_TYPEDEFS
-#else
 #ifndef E_SCREENSAVER_H
 #define E_SCREENSAVER_H
 
@@ -15,4 +13,3 @@ E_API extern int E_EVENT_SCREENSAVER_OFF_PRE;
 E_API extern int E_EVENT_SCREENSAVER_OFF;
 
 #endif
-#endif
index 2e9a29972a4cf10ef84d0e5e7c8d0c2f81872033..340f7d03fb9dd0b9a8417271c2268cca6391ce36 100644 (file)
@@ -1,9 +1,6 @@
-#ifdef E_TYPEDEFS
-#else
 #ifndef E_SECURITY_H
 #define E_SECURITY_H
 
 E_API Eina_Bool e_security_privilege_check(pid_t pid, uid_t uid, const char *privilege);
 
 #endif
-#endif
index 407c60d004805a7b7b8e470be568ac974e1f6136..0e62792410165d125dd538b4c99a7d88b026b131 100644 (file)
@@ -1,7 +1,10 @@
-#ifndef E_SERVICE_GESTURE
-#define E_SERVICE_GESTURE
+#ifndef E_SERVICE_GESTURE_H
+#define E_SERVICE_GESTURE_H
 
-#include "e_policy_private_data.h"
+#include <e_types.h>
+#include <e_policy_private_data.h>
+
+#include <Evas.h>
 
 typedef struct _E_Policy_Gesture E_Policy_Gesture;
 
@@ -13,16 +16,16 @@ typedef enum
 } E_Policy_Gesture_Type;
 
 typedef void (*E_Policy_Gesture_Start_Cb)(void *data, Evas_Object *obj, int nfingers, int x, int y, unsigned int timestamp);
-typedef void (*E_Policy_Gesture_Move_Cb)(void *data, Evas_Object *obj, int nfingers, int x, int y, unsigned int timestamp);
-typedef void (*E_Policy_Gesture_End_Cb)(void *data, Evas_Object *obj, int nfingers, int x, int y, unsigned int timestamp);
+typedef void (*E_Policy_Gesture_Move_Cb) (void *data, Evas_Object *obj, int nfingers, int x, int y, unsigned int timestamp);
+typedef void (*E_Policy_Gesture_End_Cb)  (void *data, Evas_Object *obj, int nfingers, int x, int y, unsigned int timestamp);
 
 E_API E_Policy_Gesture  *e_service_gesture_add(Evas_Object *obj, E_Policy_Gesture_Type type, int nfingers);
-E_API void          e_service_gesture_del(E_Policy_Gesture *gesture);
-E_API void          e_service_gesture_type_set(E_Policy_Gesture *gesture, E_Policy_Gesture_Type type);
-E_API void          e_service_gesture_cb_set(E_Policy_Gesture *gesture, E_Policy_Gesture_Start_Cb cb_start, E_Policy_Gesture_Move_Cb cb_move, E_Policy_Gesture_End_Cb cb_end, void *data);
-E_API void          e_service_gesture_angle_set(E_Policy_Gesture *gesture, int angle);
-E_API void          e_service_gesture_fingers_set(E_Policy_Gesture *gesture, int nfingers);
-E_API void          e_service_gesture_wait_time_set(E_Policy_Gesture *gesture, double wait_time);
-E_API void          e_service_gesture_wait_dist_set(E_Policy_Gesture *gesture, int wait_dist);
+E_API void               e_service_gesture_del(E_Policy_Gesture *gesture);
+E_API void               e_service_gesture_type_set(E_Policy_Gesture *gesture, E_Policy_Gesture_Type type);
+E_API void               e_service_gesture_cb_set(E_Policy_Gesture *gesture, E_Policy_Gesture_Start_Cb cb_start, E_Policy_Gesture_Move_Cb cb_move, E_Policy_Gesture_End_Cb cb_end, void *data);
+E_API void               e_service_gesture_angle_set(E_Policy_Gesture *gesture, int angle);
+E_API void               e_service_gesture_fingers_set(E_Policy_Gesture *gesture, int nfingers);
+E_API void               e_service_gesture_wait_time_set(E_Policy_Gesture *gesture, double wait_time);
+E_API void               e_service_gesture_wait_dist_set(E_Policy_Gesture *gesture, int wait_dist);
 
 #endif /* E_SERVICE_GESTURE */
index d13948dd6a1a4597323199efba7bfc7e929a5370..4d2608bc5b50f63d09e0cc49c4b4f7f63e3d8cf7 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_SERVICE_QUICKPANEL_H
 #define E_SERVICE_QUICKPANEL_H
 
+#include <e_policy.h>
+
 #include <tzsh_server.h>
 
 typedef struct _E_QP_Mgr_Funcs       E_QP_Mgr_Funcs;
index dc63f61a3ab6adaaea679127f490f1740d2ca592..3357254e8eb744199ce5740a7cb4bedc1bc7c5cd 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef E_SERVICE_SOFTKEY_H
 #define E_SERVICE_SOFTKEY_H
 
+#include <e_policy.h>
+
 typedef struct _E_Service_Softkey E_Service_Softkey;
 typedef struct _E_Service_Softkey_Funcs E_Service_Softkey_Funcs;
 
index 28bf85b17bd073656be44dcc6b597a9fdba5f188..a90b1cfc04dfcbec64e4774584803f48990eb64e 100644 (file)
@@ -1,9 +1,6 @@
-#ifdef E_TYPEDEFS
-#else
 #ifndef E_THEME_H
 #define E_THEME_H
 
 E_API int         e_theme_edje_object_set(Evas_Object *o, const char *category, const char *group);
 
 #endif
-#endif
diff --git a/src/include/e_types.h b/src/include/e_types.h
new file mode 100644 (file)
index 0000000..d322d39
--- /dev/null
@@ -0,0 +1,238 @@
+#ifndef E_TYPES_H
+#define E_TYPES_H
+
+#include <tdm.h>
+#include <wayland-server.h>
+#include <Eina.h>
+#include <Ecore_Input.h>
+
+# ifdef E_API
+#  undef E_API
+# endif
+# ifdef WIN32
+#  ifdef BUILDING_DLL
+#   define E_API __declspec(dllexport)
+#  else
+#   define E_API __declspec(dllimport)
+#  endif
+# else
+#  ifdef __GNUC__
+#   if __GNUC__ >= 4
+/* BROKEN in gcc 4 on amd64 */
+#    if 0
+#     pragma GCC visibility push(hidden)
+#    endif
+#    define E_API __attribute__ ((visibility("default")))
+#   else
+#    define E_API
+#   endif
+#  else
+#   define E_API
+#  endif
+# endif
+
+# ifdef EINTERN
+#  undef EINTERN
+# endif
+# ifdef __GNUC__
+#  if __GNUC__ >= 4
+#   define EINTERN __attribute__ ((visibility("hidden")))
+#  else
+#   define EINTERN
+#  endif
+# else
+#  define EINTERN
+# endif
+
+# define E_LAYER_COUNT 31
+
+//#define SMARTERR(args...) abort()
+#define SMARTERRNR() return
+#define SMARTERR(x)  return x
+
+typedef struct _E_Client                      E_Client;                      // type of e_client.h
+typedef struct _E_Desk                        E_Desk;                        // type of e_desk.h
+typedef struct _E_Zone                        E_Zone;                        // type of e_zone.h
+typedef struct _E_Output                      E_Output;                      // type of e_output.h
+typedef struct _E_Hwc                         E_Hwc;                         // type of e_hwc.h
+typedef struct _E_Hwc_Window                  E_Hwc_Window;                  // type of e_hwc_window.h
+typedef struct _E_Hwc_Window_Buffer           E_Hwc_Window_Buffer;           // type of e_hwc_window.h
+typedef struct _E_Hwc_Window_Target           E_Hwc_Window_Target;           // type of e_hwc_window.h
+typedef struct _E_Hwc_Window_Update_Data      E_Hwc_Window_Update_Data;      // type of e_hwc_window.h
+typedef struct _E_Hwc_Window_Queue            E_Hwc_Window_Queue;            // type of e_hwc_window_queue_intern.h
+typedef struct _E_Hwc_Window_Queue_Buffer     E_Hwc_Window_Queue_Buffer;     // type of e_hwc_window_queue_intern.h
+typedef struct _E_Hwc_Window_Queue_Buffer_Ref E_Hwc_Window_Queue_Buffer_Ref; // type of e_hwc_window_queue_intern.h
+typedef struct _E_Plane                       E_Plane;                       // type of e_plane.h
+typedef struct _E_Plane_Renderer              E_Plane_Renderer;              // type of e_plane_renderer.h
+typedef struct _E_Comp_Wl_Buffer              E_Comp_Wl_Buffer;              // type of e_comp_wl.h
+typedef struct _E_Comp_Wl_Buffer_Ref          E_Comp_Wl_Buffer_Ref;          // type of e_comp_wl.h
+typedef struct _E_Object                      E_Object;                      // type of e_object.h
+
+typedef struct _E_Client_Hook E_Client_Hook;  // type of e_client.h
+
+typedef struct E_Binding_Event_Mouse_Button   E_Binding_Event_Mouse_Button;  // type of e_bindings_intern.h FIXME: remove it
+typedef struct E_Binding_Event_Wheel          E_Binding_Event_Wheel;         // type of e_bindings_intern.h FIXME: remove it
+
+typedef void (*E_Object_Cleanup_Func) (void *obj); // type of e_object.h
+
+
+// enum of e_client.h
+typedef enum
+{
+   /* same as ecore-x types */
+   E_WINDOW_TYPE_UNKNOWN = 0,
+   E_WINDOW_TYPE_DESKTOP,
+   E_WINDOW_TYPE_DOCK,
+   E_WINDOW_TYPE_TOOLBAR,
+   E_WINDOW_TYPE_MENU,
+   E_WINDOW_TYPE_UTILITY,
+   E_WINDOW_TYPE_SPLASH,
+   E_WINDOW_TYPE_DIALOG,
+   E_WINDOW_TYPE_NORMAL,
+   E_WINDOW_TYPE_DROPDOWN_MENU,
+   E_WINDOW_TYPE_POPUP_MENU,
+   E_WINDOW_TYPE_TOOLTIP,
+   E_WINDOW_TYPE_NOTIFICATION,
+   E_WINDOW_TYPE_COMBO,
+   E_WINDOW_TYPE_DND,
+   /* since UNKNOWN was used improperly in comp matching,
+    * this value is a placeholder to indicate that we want
+    * only type UNKNOWN windows
+    */
+   E_WINDOW_TYPE_REAL_UNKNOWN = 999
+} E_Window_Type;
+
+// enum of e_desk.h
+typedef enum _E_Desk_Area_Layer
+{
+   E_DESK_AREA_LAYER_BACKGROUND          = 0,     //E_LAYER_DESKTOP
+   E_DESK_AREA_LAYER_NORMAL_BELOW        = 150,   //E_LAYER_CLIENT_BELOW
+   E_DESK_AREA_LAYER_NORMAL              = 200,   //E_LAYER_CLIENT_NORMAL,
+   E_DESK_AREA_LAYER_NORMAL_ABOVE        = 250,   //E_LAYER_CLIENT_ABOVE,
+   E_DESK_AREA_LAYER_NOTIFICATION_LOW    = 650,   //E_LAYER_CLIENT_NOTIFICATION_LOW,
+   E_DESK_AREA_LAYER_NOTIFICATION_NORMAL = 700,   //E_LAYER_CLIENT_NOTIFICATION_NORMAL,
+   E_DESK_AREA_LAYER_NOTIFICATION_HIGH   = 750,   //E_LAYER_CLIENT_NOTIFICATION_HIGH,
+   E_DESK_AREA_LAYER_NOTIFICATION_TOP    = 800,   //E_LAYER_CLIENT_NOTIFICATION_TOP,
+   E_DESK_AREA_LAYER_SYSTEM              = 900,   //E_LAYER_CLIENT_ALERT,
+} E_Desk_Area_Layer;
+
+// enum of e_comp.h
+typedef enum _E_Layer
+{
+   E_LAYER_BOTTOM = -100,
+   E_LAYER_BG = -1, // zone bg stuff
+   E_LAYER_DESKTOP = 0, // desktop objects: fileman, gadgets, shelves
+   E_LAYER_DESKTOP_TOP = 10, // raised desktop objects: gadgets
+   E_LAYER_CLIENT_DESKTOP = 100, //shelves
+   E_LAYER_CLIENT_BELOW = 150,
+   E_LAYER_CLIENT_NORMAL = 200,
+   E_LAYER_CLIENT_ABOVE = 250,
+   E_LAYER_CLIENT_EDGE = 300,
+   E_LAYER_CLIENT_FULLSCREEN = 350,
+   E_LAYER_CLIENT_EDGE_FULLSCREEN = 400,
+   E_LAYER_CLIENT_POPUP = 450,
+   E_LAYER_CLIENT_TOP = 500,
+   E_LAYER_CLIENT_PRIO = 600,
+   E_LAYER_CLIENT_NOTIFICATION_LOW = 650,
+   E_LAYER_CLIENT_NOTIFICATION_NORMAL = 700,
+   E_LAYER_CLIENT_NOTIFICATION_HIGH = 750,
+   E_LAYER_CLIENT_NOTIFICATION_TOP = 800,
+   E_LAYER_CLIENT_ALERT_LOW = 850,
+   E_LAYER_CLIENT_ALERT = 900,
+   E_LAYER_CLIENT_ALERT_HIGH = 950,
+   E_LAYER_CLIENT_DRAG = 980,
+   E_LAYER_CLIENT_CURSOR = 990,
+   E_LAYER_POPUP = 999, // popups
+   E_LAYER_EFFECT = 1999,
+   E_LAYER_DESK_OBJECT_BELOW = 3000,
+   E_LAYER_DESK_OBJECT = 3100,
+   E_LAYER_DESK_OBJECT_ABOVE = 3200,
+   E_LAYER_MENU = 5000, // menus
+   E_LAYER_DESKLOCK = 9999, // desklock
+   E_LAYER_MAX = 32767 // EVAS_LAYER_MAX
+} E_Layer;
+
+// enum of e_comp.h
+typedef enum   _E_Output_Display_Mode
+{
+   E_OUTPUT_DISPLAY_MODE_NONE,
+   E_OUTPUT_DISPLAY_MODE_MIRROR,
+   E_OUTPUT_DISPLAY_MODE_PRESENTATION,
+} E_Output_Display_Mode;
+
+// struct of e_comp_wl.h
+struct _E_Comp_Wl_Buffer_Ref
+{
+   E_Comp_Wl_Buffer *buffer;
+   struct wl_listener destroy_listener;
+};
+
+// struct of e_hwc_window_queue_intern.h
+struct _E_Hwc_Window_Queue_Buffer_Ref
+{
+   E_Hwc_Window_Queue_Buffer     *buffer;
+   struct wl_listener             destroy_listener;
+};
+
+// struct of e_hwc_window.h
+struct _E_Hwc_Window_Buffer
+{
+   tbm_surface_h                  tsurface;
+   E_Hwc_Window_Queue            *queue;
+   struct wl_listener             queue_destroy_listener;
+   Eina_Bool                      from_queue;
+   int                            transform;
+};
+
+// struct of e_hwc_window.h
+struct _E_Hwc_Window_Update_Data
+{
+   E_Comp_Wl_Buffer_Ref           buffer_ref;
+   E_Hwc_Window_Queue_Buffer_Ref  queue_buffer_ref;
+   E_Hwc_Window_Buffer            buffer;
+   tdm_hwc_window_info            info;
+   E_Hwc_Window                  *hwc_window;
+};
+
+struct _E_Object
+{
+   int                      magic;
+   int                      type;
+   int                      references;
+   E_Object_Cleanup_Func    del_func;
+   E_Object_Cleanup_Func    cleanup_func;
+   E_Object_Cleanup_Func    free_att_func;
+   E_Object_Cleanup_Func    del_att_func;
+   E_Object_Cleanup_Func    del_delay_func;
+   Eina_Inlist             *del_fn_list;
+   void                    *data;
+   Ecore_Job               *delay_del_job;
+   int                      delay_del_ref;
+   int                      walking_list;
+   Eina_Bool                ref_debug : 1;
+   Eina_Bool                deleted : 1;
+};
+
+// TODO:FIXME: remove the use of this structure
+struct _E_Action
+{
+   E_Object    e_obj_inherit;
+
+   const char *name;
+   struct
+   {
+      void (*go)(E_Object *obj, const char *params);
+      void (*go_mouse)(E_Object *obj, const char *params, E_Binding_Event_Mouse_Button *ev);
+      void (*go_wheel)(E_Object *obj, const char *params, E_Binding_Event_Wheel *ev);
+      void (*go_key)(E_Object *obj, const char *params, Ecore_Event_Key *ev);
+      void (*go_signal)(E_Object *obj, const char *params, const char *sig, const char *src);
+      void (*end)(E_Object *obj, const char *params);
+      void (*end_mouse)(E_Object *obj, const char *params, E_Binding_Event_Mouse_Button *ev);
+      void (*end_key)(E_Object *obj, const char *params, Ecore_Event_Key *ev);
+   } func;
+};
+
+extern Eina_Bool starting;
+extern Eina_Bool stopping;
+
+#endif
index 2c659575da57425b7bd8bc9f12d7b36fd0f0dea0..80674af8605237d2487f10bc7e3801b667743838 100644 (file)
@@ -1,8 +1,11 @@
-#ifdef E_TYPEDEFS
+#ifndef E_UTIL_TRANSFORM_H
+#define E_UTIL_TRANSFORM_H
 
+#include <e_client.h>
+
+typedef struct _E_Util_Transform                    E_Util_Transform;
 typedef struct _E_Util_Transform_Value              E_Util_Transform_Value;
 typedef struct _E_Util_Transform_Texcoord           E_Util_Transform_Texcoord;
-typedef struct _E_Util_Transform                    E_Util_Transform;
 typedef struct _E_Util_Transform_Rect               E_Util_Transform_Rect;
 typedef struct _E_Util_Transform_Axis               E_Util_Transform_Axis;
 typedef struct _E_Util_Transform_Vertex             E_Util_Transform_Vertex;
@@ -10,11 +13,6 @@ typedef struct _E_Util_Transform_Rect_Vertex        E_Util_Transform_Rect_Vertex
 typedef struct _E_Util_Transform_Matrix             E_Util_Transform_Matrix;
 typedef struct _E_Util_Transform_Zoom               E_Util_Transform_Zoom;
 
-
-#else
-#ifndef E_UTIL_TRANSFORM_H_
-#define E_UTIL_TRANSFORM_H_
-
 struct _E_Util_Transform_Texcoord
 {
    double value[4][2];
@@ -175,4 +173,3 @@ E_API void                         e_util_transform_log(E_Util_Transform *transf
 E_API void e_util_transform_matrix_inv_rect_coords_get(E_Util_Transform *transform, E_Util_Transform_Rect_Vertex *vetices, int w, int h, int x, int y, int *out_x, int *out_y);
 
 #endif
-#endif
index 075c5dfa02f209316a9a161bd6aec4f7a5c3faa5..de96b29e9b2676db5874e7d9521ae5566d908ffe 100644 (file)
@@ -1,6 +1,3 @@
-#ifdef E_TYPEDEFS
-
-#else
 #ifndef E_UTILS_H
 #define E_UTILS_H
 
@@ -9,4 +6,3 @@ E_API int          e_util_strcmp(const char *s1, const char *s2);
 E_API unsigned int e_util_timestamp_get(void);
 
 #endif
-#endif
index 92b43852b01f076593df45e4fa1aff0df7bcfcaf..910261fdec864bc9cdd2953b99fe7978a5479780 100644 (file)
@@ -1,12 +1,13 @@
-#ifdef E_TYPEDEFS
+#ifndef E_ZONE_H
+#define E_ZONE_H
 
-typedef enum _E_Zone_Display_State
-{
-   E_ZONE_DISPLAY_STATE_OFF,
-   E_ZONE_DISPLAY_STATE_ON,
-} E_Zone_Display_State;
+#include <e_client.h>
+#include <e_actions.h>
+#include <e_focus.h>
+#include <e_desk.h>
+
+#define E_ZONE_TYPE (int)0xE0b0100d
 
-typedef struct _E_Zone                      E_Zone;
 typedef struct _E_Zone_Obstacle             E_Zone_Obstacle;
 
 typedef struct _E_Event_Zone_Generic        E_Event_Zone_Desk_Count_Set;
@@ -28,15 +29,19 @@ typedef struct _E_Event_Zone_Generic                E_Event_Zone_Rotation_Effect
 #endif
 typedef struct _E_Event_Zone_Display_State_Change   E_Event_Zone_Display_State_Change;
 
-#else
-#ifndef E_ZONE_H
-#define E_ZONE_H
+typedef struct _E_Zone_Hook E_Zone_Hook;
+
+typedef void (*E_Zone_Hook_Cb)(void *data, E_Zone *zone);
 
 typedef Eina_Bool (*E_Zone_Cb_Orientation_Block_Set)(E_Zone *zone, const char* name_hint, Eina_Bool set);
 typedef void      (*E_Zone_Cb_Orientation_Force_Update_Add)(E_Zone *zone, E_Client *client);
 typedef void      (*E_Zone_Cb_Orientation_Force_Update_Del)(E_Zone *zone, E_Client *client);
 
-typedef struct _E_Zone_Hook E_Zone_Hook;
+typedef enum _E_Zone_Display_State
+{
+   E_ZONE_DISPLAY_STATE_OFF,
+   E_ZONE_DISPLAY_STATE_ON,
+} E_Zone_Display_State;
 
 typedef enum _E_Zone_Hook_Point
 {
@@ -44,8 +49,6 @@ typedef enum _E_Zone_Hook_Point
    E_ZONE_HOOK_LAST
 } E_Zone_Hook_Point;
 
-typedef void (*E_Zone_Hook_Cb)(void *data, E_Zone *zone);
-
 struct _E_Zone_Hook
 {
    EINA_INLIST;
@@ -55,8 +58,6 @@ struct _E_Zone_Hook
    unsigned char     delete_me : 1;
 };
 
-#define E_ZONE_TYPE (int)0xE0b0100d
-
 struct _E_Zone
 {
    E_Object     e_obj_inherit;
@@ -202,4 +203,3 @@ E_API E_Zone_Hook *e_zone_hook_add(E_Zone_Hook_Point hookpoint, E_Zone_Hook_Cb f
 E_API void         e_zone_hook_del(E_Zone_Hook *zh);
 
 #endif
-#endif
index b0d6cd68255f794d7605a676511a5b3e9f778beb..d67cafba941cfd6f8a98dc396c3396a43b6bd387 100644 (file)
@@ -1,5 +1,9 @@
-#include "e.h"
+
+#include "e_intern.h"
 #include "bq_mgr_protocol.h"
+#include "e_object.h"
+#include "e_comp_intern.h"
+#include "e_module_intern.h"
 
 #define E_BQ_MGR_TYPE         (int)0xE0b91001
 #define E_BQ_QUEUE_TYPE       (int)0xE0b91002
index 85a7df1c4bac589cc530b08c2a1e0d88c041f752..59a2e864e894db59bb361511356d0955e13fe11e 100644 (file)
@@ -1,18 +1,13 @@
 
 bin_PROGRAMS = enlightenment-tests
 
-#tc_e_util_transform_sources = \
-#      tc-e_util_transform.cpp \
-#      ../src/bin/e_util_transform.c
-
 enlightenment_tests_SOURCES = \
        tc-main.cpp \
        tc-e_util_transform.cpp \
        $(top_srcdir)/src/bin/e_util_transform.c
 
-#enlightenment_tests_SOURCES += \
-#      tc-e_util_transform.cpp \
-#      ../src/bin/e_util_transform.c
+enlightenment_tests_SOURCES = \
+       tc-main.cpp
 
 enlightenment_tests_CFLAGS = \
        @DLOG_CFLAGS@ \
@@ -23,11 +18,7 @@ enlightenment_tests_CFLAGS = \
        @SUID_CFLAGS@ \
        @e_cflags@ \
        ${CFLAGS} \
-       -I$(top_builddir)/src/bin \
-       -I$(top_builddir)/src/bin/video \
-       -I$(top_builddir)/src/bin/services \
-       -I$(top_builddir)/src/include \
-       -I$(top_builddir)/src/modules
+       -I$(top_builddir)/src/include
 
 enlightenment_tests_CXXFLAGS = \
        @DLOG_CFLAGS@ \
@@ -37,11 +28,7 @@ enlightenment_tests_CXXFLAGS = \
        @GMOCK_CFLAGS@ \
        @SUID_CFLAGS@ \
        ${CXXFLAGS} \
-       -I$(top_builddir)/src/bin \
-       -I$(top_builddir)/src/bin/video \
-       -I$(top_builddir)/src/bin/services \
-       -I$(top_builddir)/src/include \
-       -I$(top_builddir)/src/modules
+       -I$(top_builddir)/src/include
 
 enlightenment_tests_LDFLAGS = \
        @DLOG_LIBS@ \