From: Changgyu Choi Date: Mon, 12 May 2025 00:46:06 +0000 (+0000) Subject: Revert "Fix generated code build error for extension option" X-Git-Tag: accepted/tizen/unified/20250514.060657~4^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=35167c93e27890c7848adafc346cd9a7a175d53c;p=platform%2Fcore%2Fappfw%2Ftidl.git Revert "Fix generated code build error for extension option" This reverts commit 1d831dd910c0ff340ddf66ab25a0068f72883fb9. Reason for revert: Another method will be applied. Change-Id: I29ee0ace2c8d4fe05930a10934be9f17112fdd68 --- diff --git a/idlc/gen/c_stub_body_gen_cb.h b/idlc/gen/c_stub_body_gen_cb.h index 37c9021f..1a324684 100644 --- a/idlc/gen/c_stub_body_gen_cb.h +++ b/idlc/gen/c_stub_body_gen_cb.h @@ -1220,6 +1220,7 @@ if (ret != RPC_PORT_ERROR_NONE) { constexpr const char CB_INTENRAL_HEADER_INCLUSION[] = R"__c_cb( +#include )__c_cb"; /** diff --git a/idlc/gen/cpp_stub_body_gen_cb.h b/idlc/gen/cpp_stub_body_gen_cb.h index b4124fdf..2e7b8220 100644 --- a/idlc/gen/cpp_stub_body_gen_cb.h +++ b/idlc/gen/cpp_stub_body_gen_cb.h @@ -273,6 +273,7 @@ void $$::ServiceBase::Disconnect() { constexpr const char CB_INTERNAL_HEADER_INCLUSION[] = R"__cpp_cb( +#include )__cpp_cb"; /** diff --git a/idlc/gen/version2/c_body_generator_base_cb.hh b/idlc/gen/version2/c_body_generator_base_cb.hh index 3459ad68..5d16a96b 100644 --- a/idlc/gen/version2/c_body_generator_base_cb.hh +++ b/idlc/gen/version2/c_body_generator_base_cb.hh @@ -1477,7 +1477,7 @@ typedef int (*rpc_port_parcel_write_fd_t)(rpc_port_parcel_h h, int fd); typedef int (*rpc_port_parcel_read_fd_t)(rpc_port_parcel_h h, int* fd); typedef int (*rpc_port_parcel_clone_t)(rpc_port_parcel_h* h, rpc_port_parcel_h origin); typedef int (*rpc_port_get_peer_info_t)(rpc_port_h h, pid_t* pid, uid_t* uid); -typedef int (*rpc_port_stub_has_pending_request_t)(rpc_port_stub_h, bool *); + static rpc_port_parcel_reserve_t rpc_port_parcel_reserve; static rpc_port_parcel_create_from_parcel_t rpc_port_parcel_create_from_parcel; static rpc_port_parcel_set_data_size_t rpc_port_parcel_set_data_size; @@ -1489,7 +1489,6 @@ static rpc_port_parcel_write_fd_t rpc_port_parcel_write_fd; static rpc_port_parcel_read_fd_t rpc_port_parcel_read_fd; static rpc_port_parcel_clone_t rpc_port_parcel_clone; static rpc_port_get_peer_info_t rpc_port_get_peer_info; -static rpc_port_stub_has_pending_request_t rpc_port_stub_has_pending_request; static bool rpc_port_internal_loaded; @@ -1576,13 +1575,6 @@ static void rpc_port_internal_init(void) return; } - symbol = "rpc_port_stub_has_pending_request"; - rpc_port_stub_has_pending_request = dlsym(RTLD_DEFAULT, symbol); - if (rpc_port_stub_has_pending_request == nullptr) { - _E("Failed to find symbol(%s). Please check rpc-port version", symbol); - return; - } - rpc_port_internal_loaded = true; } diff --git a/idlc/gen/version2/cpp_generator_base_cb.hh b/idlc/gen/version2/cpp_generator_base_cb.hh index 02b4f1e7..af5239d4 100644 --- a/idlc/gen/version2/cpp_generator_base_cb.hh +++ b/idlc/gen/version2/cpp_generator_base_cb.hh @@ -966,7 +966,6 @@ using rpc_port_parcel_write_fd_t = int (*)(rpc_port_parcel_h h, int fd); using rpc_port_parcel_read_fd_t = int (*)(rpc_port_parcel_h h, int* fd); using rpc_port_parcel_clone_t = int (*)(rpc_port_parcel_h* h, rpc_port_parcel_h origin); using rpc_port_get_peer_info_t = int (*)(rpc_port_h h, pid_t* pid, uid_t* uid); -using rpc_port_stub_has_pending_request_t = int (*)(rpc_port_stub_h, bool *); rpc_port_parcel_reserve_t rpc_port_parcel_reserve; rpc_port_parcel_create_from_parcel_t rpc_port_parcel_create_from_parcel; @@ -979,7 +978,6 @@ rpc_port_parcel_write_fd_t rpc_port_parcel_write_fd; rpc_port_parcel_read_fd_t rpc_port_parcel_read_fd; rpc_port_parcel_clone_t rpc_port_parcel_clone; rpc_port_get_peer_info_t rpc_port_get_peer_info; -rpc_port_stub_has_pending_request_t rpc_port_stub_has_pending_request; class RpcPortInternals { public: @@ -1073,14 +1071,6 @@ class RpcPortInternals { _E("Failed to find symbol(%s). Please check rpc-port version", symbol.c_str()); return; } - - symbol = "rpc_port_stub_has_pending_request"; - rpc_port_stub_has_pending_request = reinterpret_cast( - dlsym(RTLD_DEFAULT, symbol.c_str())); - if (rpc_port_stub_has_pending_request == nullptr) { - _E("Failed to find symbol(%s). Please check rpc-port version", symbol.c_str()); - return; - } } }; diff --git a/idlc/gen/version2/cpp_stub_body_generator_cb.hh b/idlc/gen/version2/cpp_stub_body_generator_cb.hh index eb61eb65..0ed537f0 100644 --- a/idlc/gen/version2/cpp_stub_body_generator_cb.hh +++ b/idlc/gen/version2/cpp_stub_body_generator_cb.hh @@ -854,6 +854,7 @@ EXPORT_API int rpc_port_stub__lem__send(void* context, rpc constexpr const char CB_INTERNAL_HEADER_INCLUSION[] = R"__cpp_cb( +#include )__cpp_cb"; /**