Change-Id: I4a303e54934ee37180b92d9c33844739c3b1973f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
s += GetSetterString("h->" + id + "[i]", "value");
return s;
});
+ } else if (type.IsUserDefinedType()) {
+ str += GenTemplateString(ReplaceAll(CB_READ_USER_DEFINED_BLOCK, "##", id),
+ [&]()->std::string {
+ return GetFullNameFromType(type);
+ });
} else {
str += GenTemplateString(parcel,
[&]()->std::string {
} while (0);
)__c_cb";
+const char CB_READ_USER_DEFINED_BLOCK[] =
+R"__c_cb(do {
+ rpc_port_$$_create(&h->##);
+ if (!h->##) {
+ _E("Failed to create handle");
+ return;
+ }
+
+ rpc_port_parcel_read(parcel, &h->##->parcelable, h->##);
+} while (0);
+)__c_cb";
+
const char CB_FINALIZE_LIST_BLOCK[] =
R"__c_cb(
do {