Add missing implementation about return value of method 71/264971/2
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 6 Oct 2021 08:57:44 +0000 (17:57 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 6 Oct 2021 09:10:06 +0000 (18:10 +0900)
There is a problem about container type. If the return value of the method is
container type, it's not generated. This patch fixes the bug.

Change-Id: I101db5b207fb010cf92dafaa93987b4aa06a29f4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
idlc/gen/c_body_gen_base.cc
idlc/gen/c_header_gen_base.cc

index 573a1c9144e8a7d263a41bd5e26d813df65f44a8..9581afa0292376d96c9af1950bcb08b79105344e 100644 (file)
@@ -57,6 +57,11 @@ CBodyGeneratorBase::CBodyGeneratorBase(std::shared_ptr<Document> doc)
 
           AddStructureFromType(type, iface);
         }
+
+        if (d->GetMethodType() == Declaration::MethodType::SYNC) {
+          auto& type = d->GetType();
+          AddStructureFromType(type, iface);
+        }
       }
     }
   }
index dcbaf54eaabef49d3fb4b4c51c5ab87a27f1dcec..8c4d015197ae04278fdc5a9520c8023eea078099 100644 (file)
@@ -45,6 +45,11 @@ CHeaderGeneratorBase::CHeaderGeneratorBase(std::shared_ptr<Document> doc)
 
           AddStructureFromType(type, iface);
         }
+
+        if (d->GetMethodType() == Declaration::MethodType::SYNC) {
+          auto& type = d->GetType();
+          AddStructureFromType(type, iface);
+        }
       }
     }
   }