summaryrefslogtreecommitdiffstats
path: root/src/afb_binding_api.cpp
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/afb_binding_api.cpp
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/afb_binding_api.cpp')
-rw-r--r--src/afb_binding_api.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/afb_binding_api.cpp b/src/afb_binding_api.cpp
index 3c75524..735a572 100644
--- a/src/afb_binding_api.cpp
+++ b/src/afb_binding_api.cpp
@@ -38,6 +38,16 @@ binding_api::result_type binding_api::requestsurface(
return Ok(json_object_new_int(r.unwrap()));
}
+binding_api::result_type binding_api::requestsurfacexdg(
+ char const *drawing_name, char const *ivi_id) {
+ auto r = this->app->api_request_surface(drawing_name, ivi_id);
+ if (r != nullptr) {
+ HMI_DEBUG("wm", "%s failed with error: %s", __func__, r);
+ return Err<json_object *>(r);
+ }
+ return Ok(json_object_new_object());
+}
+
binding_api::result_type binding_api::activatesurface(
char const *drawing_name, char const *drawing_area) {
HMI_DEBUG("wm", "%s drawing_name %s, drawing_area %s", __func__, drawing_name, drawing_area);