diff --git a/ipc/native/c/manager/include/ipc_process_skeleton.h b/ipc/native/c/manager/include/ipc_process_skeleton.h index e84716f1fa58457e51a93c92d6781fe140b9d0f1..87a31aeb950b0b3888b471fdf47ec49842e5872f 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 2cd04b8b5c6af0c5e770b4e8404d0016b386e21a..c3f976055a1d2accd317a80ea8c16e48dd6dfd2d 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.");