summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-05-22 17:35:44 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-06-29 06:49:27 +0000
commitf27a437b3dd6fead9566743ce6051dc6adde5eab (patch)
tree88db5e054ff68a661426a94d428534e2410d0983
parent026af4256b9b69ffd52972d6da0cb394dff2b0e6 (diff)
Add screen_updated and error event
Add events screen_updated * emitted when the displayed application changed. error * emitted when a error happens after request is accepted. Related commit: https://gerrit.automotivelinux.org/gerrit/#/c/14761/ Change-Id: I3c91c053668490fe68e45121a34e1fae5cd403fc Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r--src/libwindowmanager.cpp4
-rw-r--r--src/libwindowmanager.h6
2 files changed, 9 insertions, 1 deletions
diff --git a/src/libwindowmanager.cpp b/src/libwindowmanager.cpp
index 21f7645..c1bdbb8 100644
--- a/src/libwindowmanager.cpp
+++ b/src/libwindowmanager.cpp
@@ -55,7 +55,9 @@ class LibWindowmanager::Impl {
std::string("visible"),
std::string("invisible"),
std::string("syncdraw"),
- std::string("flushdraw")
+ std::string("flushdraw"),
+ std::string("screen_updated"),
+ std::string("error")
};
/* Key for json obejct */
diff --git a/src/libwindowmanager.h b/src/libwindowmanager.h
index b2b9496..3b21091 100644
--- a/src/libwindowmanager.h
+++ b/src/libwindowmanager.h
@@ -52,6 +52,12 @@ public:
Event_SyncDraw,
Event_FlushDraw,
+
+ Event_ScreenUpdated,
+
+ Event_Error,
+
+ Event_Val_Max = Event_Error
};
int init(int port, char const *token);