aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-06-04 16:34:44 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-06-04 16:34:44 +0900
commita181459365cdf50a72b26b1f770577096ba19d4a (patch)
tree0fad149ac95dc823b508181606580605c2c6ecac
parent2340eb6f1c780cd98e77403d2b7f40a1fcc21471 (diff)
Add global error event
Change-Id: I285437e22fd9666eac9bb645035dcf7d134eb892 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r--src/app.cpp4
-rw-r--r--src/app.hpp7
2 files changed, 5 insertions, 6 deletions
diff --git a/src/app.cpp b/src/app.cpp
index b6160d2..1802c33 100644
--- a/src/app.cpp
+++ b/src/app.cpp
@@ -860,10 +860,6 @@ void App::api_activate_surface(char const *appid, char const *drawing_name, char
auto client = app_list.lookUpClient(id);
- // test
- HMI_DEBUG("wm", "test");
- client->emitError(WM_CLIENT_ERROR_EVENT::UNKNOWN_ERROR);
-
/*
* Queueing Phase
*/
diff --git a/src/app.hpp b/src/app.hpp
index 4d079c1..25a72cb 100644
--- a/src/app.hpp
+++ b/src/app.hpp
@@ -158,7 +158,9 @@ struct App
Event_SyncDraw,
Event_FlushDraw,
- Event_Val_Max = Event_FlushDraw,
+ Event_Error,
+
+ Event_Val_Max = Event_Error,
};
const std::vector<const char *> kListEventName{
@@ -167,7 +169,8 @@ struct App
"visible",
"invisible",
"syncdraw",
- "flushdraw"};
+ "flushdraw",
+ "error"};
struct controller_hooks chooks;