Returns a result of rpc_port_parcel_send()
Change-Id: Ic58f06d23df1f4167844885e5858f7dc9cfb0a6c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
" rpc_port_parcel_create(&result);\n" \
" rpc_port_parcel_write_int32(result, $$_METHOD_Result);\n" \
"$$" \
- " rpc_port_parcel_send(result, port);\n" \
+ " r = rpc_port_parcel_send(result, port);\n" \
" rpc_port_parcel_destroy(result);\n" \
"} while (0);\n";
const char ternary_operation[] = "## ? ## : \"\"";
}
$$
- return 0;
+ return r;
}
)__c_cb";
int rpc_port_$$_invoke($$)
{
rpc_port_parcel_h parcel = NULL;
+ int r;
if (!h || !h->port) {
_E("Invalid parameter");
rpc_port_parcel_write_int32(parcel, $$_METHOD_Callback);
rpc_port_parcel_write(parcel, &h->parcelable, h);
$$
- rpc_port_parcel_send(parcel, h->port);
+ r = rpc_port_parcel_send(parcel, h->port);
rpc_port_parcel_destroy(parcel);
h->valid = false;
- return 0;
+ return r;
}
)__c_cb";