#include "e_utils_intern.h"
#include "e_comp_canvas_intern.h"
#include "e_comp_cfdata_intern.h"
+#include "e_comp_screen_intern.h"
#include <sys/xattr.h>
#include "services/e_service_quickpanel.h"
#include "e.h"
#include "e_comp_canvas_intern.h"
+#include "e_comp_screen_intern.h"
static Eina_List *handlers;
static Eina_Bool _ev_freeze = EINA_FALSE;
#include "e_utils_intern.h"
#include "e_scale_intern.h"
#include "e_comp_canvas_intern.h"
+#include "e_comp_screen_intern.h"
#include "Eeze.h"
#include <tizen-extension-server-protocol.h>
}
E_API void
-_e_comp_screen_keymap_set(struct xkb_context **ctx, struct xkb_keymap **map)
+e_comp_screen_keymap_set(struct xkb_context **ctx, struct xkb_keymap **map)
{
char *keymap_path = NULL;
struct xkb_context *context;
struct xkb_rule_names names = {0,};
const char* default_rules, *default_model, *default_layout, *default_variant, *default_options;
- TRACE_INPUT_BEGIN(_e_comp_screen_keymap_set);
+ TRACE_INPUT_BEGIN(e_comp_screen_keymap_set);
context = xkb_context_new(0);
EINA_SAFETY_ON_NULL_RETURN(context);
if (e_config->xkb.use_cache && !dont_use_xkb_cache)
{
e_main_ts_begin("\tDRM Keymap Init");
- _e_comp_screen_keymap_set(&ctx, &map);
+ e_comp_screen_keymap_set(&ctx, &map);
e_main_ts_end("\tDRM Keymap Init Done");
}
#ifdef E_TYPEDEFS
+typedef struct _E_Comp_Screen E_Comp_Screen;
+
#else
#ifndef E_COMP_SCREEN_H
#define E_COMP_SCREEN_H
#include <tdm.h>
+#include <xkbcommon/xkbcommon.h>
-typedef struct _E_Comp_Screen E_Comp_Screen;
-typedef struct _E_Screen E_Screen;
-
-struct _E_Comp_Screen
-{
- Eina_List *outputs; // available screens
- int w, h; // virtual resolution (calculated)
- unsigned char ignore_hotplug_events;
- unsigned char ignore_acpi_events;
- Eina_List *e_screens;
-
- int num_outputs;
- tdm_display *tdisplay;
- tbm_bufmgr bufmgr;
- void *gdevice;
- int gdevice_fd;
-
- /* for sw compositing */
- const Eina_List *devices;
-
- /* for screen_rotation */
- int rotation_pre;
- int rotation_setting;
- int rotation;
-
- /* pp support */
- Eina_Bool pp_enabled;
- Eina_List *available_pp_formats;
-
- tbm_surface_queue_h tqueue;
-
- int fd;
- Ecore_Fd_Handler *hdlr;
-};
-
-
-struct _E_Screen
-{
- int screen, escreen;
- int x, y, w, h;
- char *id; // this is the same id we get from _E_Output so look it up there
-};
-
-extern EINTERN int E_EVENT_SCREEN_CHANGE;
-
-EINTERN Eina_Bool e_comp_screen_init(void);
-EINTERN void e_comp_screen_shutdown(void);
-EINTERN void e_comp_screen_hwc_info_debug(void);
-
-EINTERN void e_comp_screen_e_screens_setup(E_Comp_Screen *e_comp_screen, int rw, int rh);
-EINTERN const Eina_List * e_comp_screen_e_screens_get(E_Comp_Screen *e_comp_screen);
-EINTERN Eina_Bool e_comp_screen_rotation_pre_set(E_Comp_Screen *e_comp_screen, int rotation_pre);
-E_API Eina_Bool e_comp_screen_rotation_setting_set(E_Comp_Screen *e_comp_screen, int rotation);
-
-E_API void e_comp_screen_rotation_ignore_output_transform_send(E_Client *ec, Eina_Bool ignore);
-EINTERN Eina_Bool e_comp_screen_rotation_ignore_output_transform_watch(E_Client *ec);
-EINTERN E_Output * e_comp_screen_primary_output_get(E_Comp_Screen *e_comp_screen);
-
-EINTERN Eina_Bool e_comp_screen_pp_support(void);
-EINTERN Eina_List * e_comp_screen_pp_available_formats_get(void);
-E_API Eina_Bool e_comp_screen_available_video_formats_get(const tbm_format **formats, int *count);
-
-EINTERN void * e_comp_screen_gbm_device_get(E_Comp_Screen *e_comp_screen);
-
-EINTERN Eina_Bool e_comp_screen_size_get(E_Comp_Screen *e_comp_screen, int *w, int *h);
-
-EINTERN void e_comp_screen_debug_info_get(Eldbus_Message_Iter *iter);
+E_API Eina_Bool e_comp_screen_rotation_setting_set(E_Comp_Screen *e_comp_screen, int rotation);
+E_API void e_comp_screen_rotation_ignore_output_transform_send(E_Client *ec, Eina_Bool ignore);
+E_API Eina_Bool e_comp_screen_available_video_formats_get(const tbm_format **formats, int *count);
+E_API void e_comp_screen_keymap_set(struct xkb_context **ctx, struct xkb_keymap **map);
#endif /*E_COMP_SCREEN_H*/
--- /dev/null
+#ifndef E_COMP_SCREEN_INTER_H
+#define E_COMP_SCREEN_INTER_H
+
+#include <tdm.h>
+
+typedef struct _E_Screen E_Screen;
+
+struct _E_Comp_Screen
+{
+ Eina_List *outputs; // available screens
+ int w, h; // virtual resolution (calculated)
+ unsigned char ignore_hotplug_events;
+ unsigned char ignore_acpi_events;
+ Eina_List *e_screens;
+
+ int num_outputs;
+ tdm_display *tdisplay;
+ tbm_bufmgr bufmgr;
+ void *gdevice;
+ int gdevice_fd;
+
+ /* for sw compositing */
+ const Eina_List *devices;
+
+ /* for screen_rotation */
+ int rotation_pre;
+ int rotation_setting;
+ int rotation;
+
+ /* pp support */
+ Eina_Bool pp_enabled;
+ Eina_List *available_pp_formats;
+
+ tbm_surface_queue_h tqueue;
+
+ int fd;
+ Ecore_Fd_Handler *hdlr;
+};
+
+
+struct _E_Screen
+{
+ int screen, escreen;
+ int x, y, w, h;
+ char *id; // this is the same id we get from _E_Output so look it up there
+};
+
+extern EINTERN int E_EVENT_SCREEN_CHANGE;
+
+EINTERN Eina_Bool e_comp_screen_init(void);
+EINTERN void e_comp_screen_shutdown(void);
+
+EINTERN void e_comp_screen_hwc_info_debug(void);
+EINTERN void e_comp_screen_e_screens_setup(E_Comp_Screen *e_comp_screen, int rw, int rh);
+EINTERN const Eina_List *e_comp_screen_e_screens_get(E_Comp_Screen *e_comp_screen);
+EINTERN Eina_Bool e_comp_screen_rotation_pre_set(E_Comp_Screen *e_comp_screen, int rotation_pre);
+EINTERN Eina_Bool e_comp_screen_rotation_ignore_output_transform_watch(E_Client *ec);
+EINTERN E_Output *e_comp_screen_primary_output_get(E_Comp_Screen *e_comp_screen);
+EINTERN Eina_Bool e_comp_screen_pp_support(void);
+EINTERN Eina_List *e_comp_screen_pp_available_formats_get(void);
+EINTERN void *e_comp_screen_gbm_device_get(E_Comp_Screen *e_comp_screen);
+EINTERN Eina_Bool e_comp_screen_size_get(E_Comp_Screen *e_comp_screen, int *w, int *h);
+EINTERN void e_comp_screen_debug_info_get(Eldbus_Message_Iter *iter);
+
+#endif
#include "e_utils_intern.h"
#include "e_scale_intern.h"
#include "e_comp_canvas_intern.h"
+#include "e_comp_screen_intern.h"
#include <tizen-extension-server-protocol.h>
#include "e.h"
#include "e_tbm_gbm_server_intern.h"
#include "e_utils_intern.h"
+#include "e_comp_screen_intern.h"
#include <wayland-tbm-server.h>
#include <tbm_bufmgr.h>
#include "e_client_intern.h"
#endif
#include "e_utils_intern.h"
+#include "e_comp_screen_intern.h"
#include <libds-tizen/screen.h>
#include "e.h"
#include "e_client_intern.h"
#include "e_xdg_shell_v6_intern.h"
+#include "e_comp_screen_intern.h"
#include <xdg-shell-unstable-v5-server-protocol.h>
#include <eom-server-protocol.h>
#include "e.h"
+#include "e_comp_screen_intern.h"
+
#include <linux-explicit-synchronization-unstable-v1-server-protocol.h>
#include <tizen-extension-server-protocol.h>
#include "e.h"
#include "e_utils_intern.h"
+#include "e_comp_screen_intern.h"
#include "services/e_service_quickpanel.h"
#include <Evas_GL.h>
#include "e.h"
+#include "e_comp_screen_intern.h"
#include "services/e_service_quickpanel.h"
+
#include <wayland-tbm-server.h>
EINTERN Eina_Bool
#include "e.h"
+#include "e_comp_screen_intern.h"
#include "services/e_service_quickpanel.h"
+
# include <Evas_Engine_GL_Tbm.h>
# include <Evas_Engine_Software_Tbm.h>
# include <wayland-tbm-server.h>
#include "services/e_service_quickpanel.h"
#include "services/e_service_kvm.h"
#include "e_process_intern.h"
+#include "e_comp_screen_intern.h"
#include <tbm_bufmgr.h>
#include <tbm_surface.h>
#include "e_info_server_input.h"
#include "e_info_shared_types.h"
#include "e_input_private.h"
+#include "e_comp_screen_intern.h"
#include <linux/uinput.h>
#include "e.h"
#include "e_input_private.h"
+#include "e_comp_screen_intern.h"
+
#include <Ecore_Input_Evas.h>
#include <cpu-boosting.h>
#include "e.h"
#include "e_input_private.h"
+#include "e_comp_screen_intern.h"
/* e_input_device private variable */
static Eina_List *einput_devices;
#include "e_keyrouter_private.h"
#include "e_input_event.h"
#include "e_devicemgr.h"
+#include "e_comp_screen_intern.h"
#include <glib.h>
#include "e.h"
#include "e_client_intern.h"
#include "e_utils_intern.h"
+#include "e_comp_screen_intern.h"
#include <device/board-internal.h>
#include "e.h"
#include "e_comp_canvas_intern.h"
+#include "e_comp_screen_intern.h"
#include <device/board-internal.h>
#include "e.h"
#include "e_comp_wl_buffer.h"
#include "e_comp_canvas_intern.h"
+#include "e_comp_screen_intern.h"
# include <tdm.h>
# include <tdm_helper.h>
#include "e.h"
#include "e_tbm_gbm_server_intern.h"
+#include "e_comp_screen_intern.h"
#include <assert.h>
#include <stdbool.h>
#include "e_video_internal.h"
+#include "e_comp_screen_intern.h"
static int
gcd(int a, int b)
#include "e_video_internal.h"
#include "e_video_hwc.h"
+#include "e_comp_screen_intern.h"
+
#include <wayland-tbm-server.h>
#ifdef DUMP_BUFFER
#include "e_video_internal.h"
#include "e_video_hwc.h"
+#include "e_comp_screen_intern.h"
#define CHECKING_PRIMARY_ZPOS
#include "e_video_internal.h"
#include "e_video_hwc.h"
+#include "e_comp_screen_intern.h"
typedef struct _E_Video_Hwc_Windows E_Video_Hwc_Windows;