aboutsummaryrefslogtreecommitdiffstats
path: root/src/window_manager.hpp
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-07-27 10:02:47 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-07-27 17:25:47 +0900
commit3d1703f9a5c9d6a356b561ea7528c70a1dc4fe2d (patch)
treebb914429501b6caf6b1b95092b6dd656ffc4adbe /src/window_manager.hpp
parent7ee936736ec753346d8a1811a3c9c014d4be8b41 (diff)
Fix crashed application can re-launch
WM can't reset the state when application crashes, after the below commit. This patch fix the crashed application can re-launch. Related commit: https://gerrit.automotivelinux.org/gerrit/#/c/14871/ Bug-AGL: SPEC-1471 Change-Id: I46019b30cc8e9a341b4b681a0288f053b3ac1b30 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/window_manager.hpp')
-rw-r--r--src/window_manager.hpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/window_manager.hpp b/src/window_manager.hpp
index 0fb1805..7f9a3b8 100644
--- a/src/window_manager.hpp
+++ b/src/window_manager.hpp
@@ -208,13 +208,13 @@ class WindowManager
int dispatch_pending_events();
void set_pending_events();
- result<int> api_request_surface(char const *appid, char const *drawing_name);
- char const *api_request_surface(char const *appid, char const *drawing_name, char const *ivi_id);
- void api_activate_surface(char const *appid, char const *drawing_name, char const *drawing_area, const reply_func &reply);
- void api_deactivate_surface(char const *appid, char const *drawing_name, const reply_func &reply);
- void api_enddraw(char const *appid, char const *drawing_name);
+ result<int> api_request_surface(char const *appid, char const *role);
+ char const *api_request_surface(char const *appid, char const *role, char const *ivi_id);
+ void api_activate_surface(char const *appid, char const *role, char const *drawing_area, const reply_func &reply);
+ void api_deactivate_surface(char const *appid, char const *role, const reply_func &reply);
+ void api_enddraw(char const *appid, char const *role);
result<json_object *> api_get_display_info();
- result<json_object *> api_get_area_info(char const *drawing_name);
+ result<json_object *> api_get_area_info(char const *role);
void api_ping();
void send_event(char const *evname, char const *label);
void send_event(char const *evname, char const *label, char const *area, int x, int y, int w, int h);
@@ -225,6 +225,7 @@ class WindowManager
void removeClient(const std::string &appid);
void exceptionProcessForTransition();
+ const char* convertRoleOldToNew(char const *role);
// Do not use this function
void timerHandler();
@@ -267,9 +268,8 @@ class WindowManager
void processNextRequest();
int loadOldRoleDb();
- const char* convertRoleOldToNew(char const *drawing_name);
- const char *check_surface_exist(const char *drawing_name);
+ const char *check_surface_exist(const char *role);
bool can_split(struct LayoutState const &state, int new_id);