diff options
author | jusung son <jusung07.son@samsung.com> | 2024-04-22 13:57:10 +0900 |
---|---|---|
committer | jusung son <jusung07.son@samsung.com> | 2024-04-22 16:02:14 +0900 |
commit | 359541cd63c1a699b140524ef118eb005f2ab500 (patch) | |
tree | ef5d155396c3068e5492c5a284bdc5d0a02e78f3 | |
parent | e2f844732e01760b404cf83980c6b58c0579a7cb (diff) | |
download | tidl-tizen_8.0.tar.gz tidl-tizen_8.0.tar.bz2 tidl-tizen_8.0.zip |
[cion] Fix delegate callback idtizen_8.0
Change-Id: I5cf4c2ec163b356a975faa99732320e608b1d704
Signed-off-by: jusung son <jusung07.son@samsung.com>
-rw-r--r-- | idlc/gen_cion/c_cion_stub_body_gen.cc | 10 | ||||
-rw-r--r-- | idlc/gen_cion/c_cion_stub_body_gen_cb.h | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/idlc/gen_cion/c_cion_stub_body_gen.cc b/idlc/gen_cion/c_cion_stub_body_gen.cc index 060b45f..b9ed970 100644 --- a/idlc/gen_cion/c_cion_stub_body_gen.cc +++ b/idlc/gen_cion/c_cion_stub_body_gen.cc @@ -343,6 +343,14 @@ void CCionStubBodyGen::GenInterfaceDelegateBase(std::ofstream& stream, ::toupper); std::string file_def = GetFilePayloadDefString(iface, decl, false); + std::string uppercase_prefix = GetHandlePrefix(); + std::transform(uppercase_prefix.begin(), uppercase_prefix.end(), + uppercase_prefix.begin(), ::toupper); + + std::string uppercase_name = iface.GetID(); + std::transform(uppercase_name.begin(), uppercase_name.end(), + uppercase_name.begin(), ::toupper); + std::string code(ReplaceAll(CB_INTERFACE_DELEGATE_BASE, { { "<FILE_LIST_SEND>", file_send }, { "<FILE_LIST_FREE>", file_free }, @@ -368,6 +376,8 @@ void CCionStubBodyGen::GenInterfaceDelegateBase(std::ofstream& stream, { "<ERROR_PREFIX>", GetTransportable().C().GenErrorPrefix() }, { "<MODULE_PREFIX>", GetMoudlePrefix() }, { "<INTERNAL_PREFIX>", GetInternalHandlePrefix() }, + { "<UPPERCASE_PREFIX>", uppercase_prefix }, + { "<UPPERCASE_NAME>", uppercase_name }, { "<PREFIX>", GetHandlePrefix() } })); diff --git a/idlc/gen_cion/c_cion_stub_body_gen_cb.h b/idlc/gen_cion/c_cion_stub_body_gen_cb.h index b16e7cf..579d2fa 100644 --- a/idlc/gen_cion/c_cion_stub_body_gen_cb.h +++ b/idlc/gen_cion/c_cion_stub_body_gen_cb.h @@ -353,7 +353,7 @@ int <PREFIX>_<NAME>_<DELEGATE_NAME>_invoke(<PREFIX>_<NAME>_<DELEGATE_NAME>_h h<D return ret_; } - rpc_port_parcel_write_int32(parcel_, <DELEGATE_ENUM_VALUE>); + rpc_port_parcel_write_int32(parcel_, <UPPERCASE_PREFIX>_<UPPERCASE_NAME>_METHOD_CALLBACK_); rpc_port_parcel_write(parcel_, &h->parcelable, h); |