From d6cd19121e0821cf40633533ae22c93c88f9e33b Mon Sep 17 00:00:00 2001 From: Tadao Tanikawa Date: Tue, 12 Dec 2017 21:44:57 +0900 Subject: Support XDG application To run XDG application on AGL HomeScreen/WindowManager, a new binding API of WindowManager is added. This api is used only by AGL XDG-Launcher and all xdg applications should be packed as wgt compatible to AGL Application framework. Bug-AGL: SPEC-1096 Change-Id: I33dd3b056c736ef374e2251e818541ddd699877b Signed-off-by: Tadao Tanikawa --- src/app.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/app.hpp') diff --git a/src/app.hpp b/src/app.hpp index 413d1c9..59f3104 100644 --- a/src/app.hpp +++ b/src/app.hpp @@ -81,6 +81,14 @@ struct id_allocator { return sid; } + // Insert a new ID which defined outside + void register_name_id(std::string const &name, unsigned sid) { + this->id2name[sid] = name; + this->name2id[name] = sid; + HMI_DEBUG("wm", "register id %u with name %s", sid, name.c_str()); + return; + } + // Lookup by ID or by name optional lookup(std::string const &name) const { auto i = this->name2id.find(name); @@ -178,6 +186,7 @@ struct App { void set_pending_events(); result api_request_surface(char const *drawing_name); + char const *api_request_surface(char const *drawing_name, char const *ivi_id); char const *api_activate_surface(char const *drawing_name, char const *drawing_area); char const *api_deactivate_surface(char const *drawing_name); char const *api_enddraw(char const *drawing_name); -- cgit 1.2.3-korg