summaryrefslogtreecommitdiffstats
path: root/src/app.hpp
diff options
context:
space:
mode:
authorTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>2017-12-12 21:44:57 +0900
committerTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>2017-12-12 12:46:49 +0000
commit13096fe59f29a1e3710c3d975d08a344af40e6c6 (patch)
tree5ce87cc544ccbc1f36c8a0b8183ba8a8a063aae6 /src/app.hpp
parenta81cf2c4626d6658550d899333db03a28f0cd185 (diff)
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 <tanikawa.tadao@jp.panasonic.com>
Diffstat (limited to 'src/app.hpp')
-rw-r--r--src/app.hpp9
1 files changed, 9 insertions, 0 deletions
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<unsigned> lookup(std::string const &name) const {
auto i = this->name2id.find(name);
@@ -178,6 +186,7 @@ struct App {
void set_pending_events();
result<int> 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);