Fixed C Generator 78/189378/2
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 17 Sep 2018 08:55:03 +0000 (17:55 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 17 Sep 2018 08:56:39 +0000 (17:56 +0900)
- Fixed build break

Change-Id: I7bc24c2f08924e101f72ec9561989b001d2fff83
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
idlc/c_gen/c_body_gen_base.cc
idlc/c_gen/c_gen_base.cc

index 0eb9956..13b4896 100644 (file)
@@ -339,7 +339,9 @@ void CBodyGeneratorBase::GenStructureRemover(std::ofstream& stream,
           [&]()->std::string {
             if (i->GetType().GetMetaType()->IsUserDefinedType() ||
                 i->GetType().GetMetaType()->ToString() == "list" ||
-                i->GetType().GetMetaType()->ToString() == "array")
+                i->GetType().GetMetaType()->ToString() == "array" ||
+                i->GetType().GetMetaType()->ToString() == "string" ||
+                i->GetType().GetMetaType()->ToString() == "bundle")
               return GetParcelParamTypeString(*i->GetType().GetMetaType());
 
             return ConvertTypeToString(ParameterType::Direction::IN,
index aff005a..4373c56 100644 (file)
@@ -114,6 +114,9 @@ std::string CGeneratorBase::GetParcelParamTypeString(const BaseType& type,
   if (type.ToString() == "string")
     return "char *";
 
+  if (type.ToString() == "bundle")
+    return "bundle *";
+
   if (is_pointer)
     return type_map_[type.ToString()] + "*";