/*
- * Generated by tidlc 1.9.1.
+ * Generated by tidlc 2.0.4.
*/
#include <stdlib.h>
#define _D(fmt, ...) dlog_print(DLOG_DEBUG, LOG_TAG, "%s: %s(%d) > " fmt, basename(const_cast<char*>(__FILE__)), __FUNCTION__, __LINE__, ##__VA_ARGS__)
#ifndef TIDL_VERSION
-#define TIDL_VERSION "1.9.1"
+#define TIDL_VERSION "2.0.4"
#endif
namespace rpc_port {
auto* cxt = static_cast<Benchmark*>(data);
rpc_port_parcel_h p;
rpc_port_parcel_h result;
- rpc_port_parcel_h header;
+ rpc_port_parcel_header_h header;
int seq_num = -1;
int cmd;
int ret;
rpc_port_parcel_get_header(p, &header);
rpc_port_parcel_header_get_seq_num(header, &seq_num);
- _W("[Sequence] %d", seq_num);
rpc_port_parcel_create(&result);
rpc_port_parcel_get_header(result, &header);
rpc_port_parcel_read_string(p, ¶m1_raw);
std::string param1(param1_raw);
free(param1_raw);
- auto retVal = b->Test(param1);
+ auto retVal = b->Test(std::move(param1));
rpc_port_parcel_write_int32(result, static_cast<int>(MethodId::__Result));
rpc_port_parcel_write_int32(result, retVal);
- ret = rpc_port_parcel_send(result, port);
- _I("Parcel send result(%d)", ret);
+ rpc_port_parcel_send(result, port);
break;
}
/*
- * Generated by tidlc 1.9.1.
+ * Generated by tidlc 2.0.4.
*/
#include <stdlib.h>
#define _D(fmt, ...) dlog_print(DLOG_DEBUG, LOG_TAG, "%s: %s(%d) > " fmt, basename(const_cast<char*>(__FILE__)), __FUNCTION__, __LINE__, ##__VA_ARGS__)
#ifndef TIDL_VERSION
-#define TIDL_VERSION "1.9.1"
+#define TIDL_VERSION "2.0.4"
#endif
namespace rpc_port {
rpc_port_parcel_header_set_tag(header_, TIDL_VERSION);
int seq_num_ = -1;
rpc_port_parcel_header_get_seq_num(header_, &seq_num_);
- _W("[Version] \"%s\", [Sequence] %d", TIDL_VERSION, seq_num_);
rpc_port_parcel_write_int32(p, static_cast<int>(MethodId::Test));
rpc_port_parcel_write_string(p, data.c_str());
rpc_port_parcel_header_get_tag(header_, &tag_);
std::unique_ptr<char, decltype(std::free)*> tag_auto_(tag_, std::free);
if (tag_ && tag_[0] != '\0') {
- _W("[Version] %s", tag_);
int seq_num_received_ = -1;
rpc_port_parcel_header_get_seq_num(header_, &seq_num_received_);
if (seq_num_received_ != seq_num_) {