From d7c5f4055729a004c97915d30ef8405fd782da4e Mon Sep 17 00:00:00 2001 From: liubb_0516 Date: Fri, 14 Jan 2022 16:05:19 +0800 Subject: [PATCH] remove redundant interface Signed-off-by: liubb_0516 --- ipc/native/c/manager/include/ipc_process_skeleton.h | 2 +- ipc/native/c/manager/src/ipc_process_skeleton.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ipc/native/c/manager/include/ipc_process_skeleton.h b/ipc/native/c/manager/include/ipc_process_skeleton.h index e84716f..87a31ae 100644 --- a/ipc/native/c/manager/include/ipc_process_skeleton.h +++ b/ipc/native/c/manager/include/ipc_process_skeleton.h @@ -64,7 +64,7 @@ const SvcIdentity *GetRegistryObject(void); int32_t ProcessSendRequest(SvcIdentity target, uint32_t code, IpcIo *data, IpcIo *reply, MessageOption option, uintptr_t *buffer); int32_t ProcessFreeBuffer(void *ptr); -void OnLastStrongRef(int32_t handle); +void OnFirstStrongRef(int32_t handle); int32_t ProcessAddDeathRecipient(int32_t handle, OnRemoteDead deathFunc, void *args, uint32_t *cbId); int32_t ProcessRemoveDeathRecipient(int32_t handle, uint32_t cbId); int32_t OnRemoteRequestInner(uint32_t code, IpcIo *data, IpcIo *reply, diff --git a/ipc/native/c/manager/src/ipc_process_skeleton.c b/ipc/native/c/manager/src/ipc_process_skeleton.c index 2cd04b8..c3f9760 100644 --- a/ipc/native/c/manager/src/ipc_process_skeleton.c +++ b/ipc/native/c/manager/src/ipc_process_skeleton.c @@ -240,7 +240,7 @@ static bool FirstAddObject(int32_t handle) return true; } -static void OnFirstStrongRef(int32_t handle) +void OnFirstStrongRef(int32_t handle) { if (handle <= 0) { RPC_LOG_ERROR("invalid handle."); -- GitLab