summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhyunho <hhstark.kang@samsung.com>2018-07-23 16:35:06 +0900
committerhyunho <hhstark.kang@samsung.com>2018-07-26 15:29:03 +0900
commita9361cfd058f18ff8d4afe5b306c250c4548e837 (patch)
treef393ab5f94038dd8b5442b702a10d72dfa17bd8f
parent9c720cdc904b3b31233bcbc7ed171bd3c75c8d51 (diff)
downloadwidget-service-a9361cfd058f18ff8d4afe5b306c250c4548e837.tar.gz
widget-service-a9361cfd058f18ff8d4afe5b306c250c4548e837.tar.bz2
widget-service-a9361cfd058f18ff8d4afe5b306c250c4548e837.zip
Use aul key for end point data
widget base using WIDGET_K_ENDPOINT as a key to get viewer id so, when widget is launched by __send_aul_cmd, widget will have null viewer id and it could cause trash widget info in viewer side. Change-Id: I72ab795893b75dfd68c2dcff809a7f2235d6cf68 Signed-off-by: hyunho <hhstark.kang@samsung.com>
-rw-r--r--include/widget_instance.h1
-rw-r--r--src/widget_instance.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/include/widget_instance.h b/include/widget_instance.h
index f3e7c29..023be97 100644
--- a/include/widget_instance.h
+++ b/include/widget_instance.h
@@ -26,7 +26,6 @@ extern "C" {
#endif
#define WIDGET_K_CLASS AUL_K_WIDGET_ID
-#define WIDGET_K_ENDPOINT "__WIDGET_ENDPOINT__"
#define WIDGET_K_CALLER "__WIDGET_CALLER_PID__"
#define WIDGET_K_OPERATION "__WIDGET_OP__"
diff --git a/src/widget_instance.c b/src/widget_instance.c
index dac58c3..4c26603 100644
--- a/src/widget_instance.c
+++ b/src/widget_instance.c
@@ -471,7 +471,6 @@ EAPI int widget_instance_launch(const char *instance_id, char *content_info, int
snprintf(pid_buf, sizeof(pid_buf), "%d", getpid());
bundle_add_str(b, WIDGET_K_CALLER, pid_buf);
- bundle_add_str(b, WIDGET_K_ENDPOINT, viewer_appid);
bundle_add_str(b, WIDGET_K_OPERATION, "create");
bundle_add_byte(b, WIDGET_K_PERIOD, &(instance->period), sizeof(double));