Adjust to change of support ambient 64/103064/2 accepted/tizen/3.0/common/20161208.153437 accepted/tizen/3.0/ivi/20161208.062746 accepted/tizen/3.0/mobile/20161208.062501 accepted/tizen/3.0/tv/20161208.062604 accepted/tizen/3.0/wearable/20161208.062658 submit/tizen_3.0/20161207.072901
authorSangyoon Jang <s89.jang@samsung.com>
Wed, 7 Dec 2016 06:42:00 +0000 (15:42 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Wed, 7 Dec 2016 06:51:20 +0000 (15:51 +0900)
Requires:
 - https://review.tizen.org/gerrit/102774

Change-Id: I0f64c7eeb825fd82f25940c0829c4725356c2c9b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
src/wgt/step/configuration/step_parse.cc
src/wgt/step/pkgmgr/step_generate_xml.cc

index d2908fa..e1f817c 100644 (file)
@@ -347,10 +347,10 @@ bool StepParse::FillMainApplicationInfo(manifest_x* manifest) {
 
   SetApplicationXDefaults(application);
   if (has_watch_category)
-    application->ambient_support =
+    application->support_ambient =
         strdup(app_info->ambient_support() ? "true" : "false");
   else
-    application->ambient_support = strdup("false");
+    application->support_ambient = strdup("false");
   application->package = strdup(app_info->package().c_str());
 
   application->exec =
@@ -398,7 +398,7 @@ bool StepParse::FillServiceApplicationInfo(manifest_x* manifest) {
     application->nodisplay = strdup("false");
     application->taskmanage = strdup("true");
     SetApplicationXDefaults(application);
-    application->ambient_support = strdup("false");
+    application->support_ambient = strdup("false");
     application->package = strdup(manifest->package);
 
     for (auto& pair : service_info.names()) {
@@ -452,7 +452,7 @@ bool StepParse::FillWidgetApplicationInfo(manifest_x* manifest) {
     application->nodisplay = strdup("true");
     application->taskmanage = strdup("false");
     SetApplicationXDefaults(application);
-    application->ambient_support = strdup("false");
+    application->support_ambient = strdup("false");
     application->package = strdup(manifest->package);
 
     if (!app_widget.label.default_value.empty()) {
index b34417b..a23e71e 100644 (file)
@@ -161,9 +161,9 @@ bool WriteWidgetApplicationAttributesAndElements(
 
 void WriteWatchApplicationAttributes(
     xmlTextWriterPtr writer, application_x* app) {
-  if (app->ambient_support)
+  if (app->support_ambient)
     xmlTextWriterWriteAttribute(writer, BAD_CAST "ambient-support",
-        BAD_CAST app->ambient_support);
+        BAD_CAST app->support_ambient);
 }
 
 }  // namespace