ipc:modify interface of ResetIpc

Signed-off-by: liubb_0516 <liubeibei8@huawei.com>
This commit is contained in:
liubb_0516 2022-05-05 16:17:34 +08:00
parent b5959d62fd
commit aed304b840
3 changed files with 6 additions and 5 deletions

View File

@ -75,6 +75,8 @@ int32_t RemoveDeathRecipient(SvcIdentity target, uint32_t cbId);
int32_t MessageOptionInit(MessageOption *option);
int32_t ReleaseSvc(SvcIdentity target);
void ResetIpc(void);
#ifdef __cplusplus
}
#endif /* __cplusplus */

View File

@ -70,7 +70,6 @@ void SendObituary(DeathCallback *deathCallback);
void DeleteDeathCallback(DeathCallback *deathCallback);
void WaitForProxyInit(SvcIdentity *svc);
int32_t DeleteHandle(int32_t handle);
void ResetIpc(void);
#ifdef __cplusplus
}
#endif /* __cplusplus */

View File

@ -424,8 +424,8 @@ void DeleteDeathCallback(DeathCallback *deathCallback)
void ResetIpc(void)
{
RemoteInvoker *invoker = GetRemoteInvoker();
if (invoker != NULL && invoker->InvokerResetIpc != NULL) {
(invoker->InvokerResetIpc)();
}
RPC_LOG_INFO("ResetIpc called");
DeleteIpcSkeleton(g_ipcSkeleton);
g_ipcSkeleton = NULL;
g_ipcSkeleton = IpcProcessSkeleton();
}