From f27a437b3dd6fead9566743ce6051dc6adde5eab Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Tue, 22 May 2018 17:35:44 +0900 Subject: 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 --- src/libwindowmanager.cpp | 4 +++- src/libwindowmanager.h | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit 1.2.3-korg