X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fappcore-internal.h;h=a645a697bab3a5ffbea2cd7dc6fbf2903d4e3787;hb=d7c2b92cd7efbeee7d8f019585cf48c2f4664bb6;hp=cb8ca6cb873364db97c12500a7a657b8019a6ce1;hpb=f1b407a4f4a9e62a352bf67285e0286a38cbe7f9;p=platform%2Fcore%2Fappfw%2Fapp-core.git diff --git a/include/appcore-internal.h b/include/appcore-internal.h index cb8ca6c..a645a69 100644 --- 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" @@ -116,6 +117,7 @@ enum app_event { AE_RESET, AE_LOWMEM_POST, AE_MEM_FLUSH, + AE_UPDATE_REQUESTED, AE_MAX }; @@ -128,6 +130,8 @@ enum sys_event { SE_LOWBAT, SE_LANGCHG, SE_REGIONCHG, + SE_SUSPENDED_STATE, + SE_UPDATE_REQUESTED, SE_MAX }; @@ -144,6 +148,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]; @@ -174,17 +181,21 @@ int appcore_pause_rotation_cb(void); int appcore_resume_rotation_cb(void); struct ui_wm_rotate { - 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 (*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_reset(bundle *b); -void appcore_group_resume(); -unsigned int appcore_get_main_window(); +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"