X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fappcore-internal.h;h=f16c2144e143364dcfaf86826ffb6aebd21e3709;hb=73f688b07dab4d695cc1f7bee4eec6701500eab4;hp=038e2dcc0a6c2a0ed167a5c265485d50bbd7f884;hpb=e9e3374e1f8b0ed5038d77a47bcbf198176ba788;p=platform%2Fcore%2Fappfw%2Fapp-core.git diff --git a/include/appcore-internal.h b/include/appcore-internal.h old mode 100755 new mode 100644 index 038e2dc..f16c214 --- a/include/appcore-internal.h +++ b/include/appcore-internal.h @@ -27,6 +27,7 @@ #define LOG_TAG "APP_CORE" #include +#include #include #include "appcore-common.h" @@ -108,8 +109,11 @@ enum app_event { AE_UNKNOWN, AE_CREATE, AE_TERMINATE, + AE_TERMINATE_BGAPP, AE_PAUSE, AE_RESUME, + AE_RAISE, + AE_LOWER, AE_RESET, AE_LOWMEM_POST, AE_MEM_FLUSH, @@ -125,6 +129,7 @@ enum sys_event { SE_LOWBAT, SE_LANGCHG, SE_REGIONCHG, + SE_SUSPENDED_STATE, SE_MAX }; @@ -132,7 +137,7 @@ enum sys_event { * Appcore system event operation */ struct sys_op { - int (*func) (void *); + int (*func) (void *, void *); void *data; }; @@ -141,6 +146,9 @@ struct sys_op { */ struct appcore { int state; + unsigned int tid; + bool suspended_state; + bool allowed_bg; const struct ui_ops *ops; struct sys_op sops[SE_MAX]; @@ -162,6 +170,7 @@ void update_region(void); /* appcore-X.c */ extern int x_raise_win(pid_t pid); +extern int x_pause_win(pid_t pid); /* appcore-util.c */ /* extern void stack_trim(void);*/ @@ -170,14 +179,22 @@ int appcore_pause_rotation_cb(void); int appcore_resume_rotation_cb(void); struct ui_wm_rotate { - int (*set_rotation_cb) (int (*cb) (enum appcore_rm, void *), void *data); - int (*unset_rotation_cb) (void); - int (*get_rotation_state) (enum appcore_rm *curr); - int (*pause_rotation_cb) (void); - int (*resume_rotation_cb) (void); + int (*set_rotation_cb) (int (*cb)(void *event_info, enum appcore_rm, void *), void *data); + int (*unset_rotation_cb) (void); + int (*get_rotation_state) (enum appcore_rm *curr); + int (*pause_rotation_cb) (void); + int (*resume_rotation_cb) (void); }; int appcore_set_wm_rotation(struct ui_wm_rotate* wm_rotate); +void appcore_group_attach(); +void appcore_group_lower(); +unsigned int appcore_get_main_window(void); +#if defined(WAYLAND) +unsigned int appcore_get_main_surface(void); +#endif +void appcore_get_app_core(struct appcore **ac); + #define ENV_START "APP_START_TIME" #define MEMORY_FLUSH_ACTIVATE