mirror of
https://gitee.com/openharmony/communication_ipc
synced 2024-12-04 22:27:59 +00:00
ipc:modify interface of ResetIpc
Signed-off-by: liubb_0516 <liubeibei8@huawei.com>
This commit is contained in:
parent
b5959d62fd
commit
aed304b840
@ -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 */
|
||||
|
@ -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 */
|
||||
|
@ -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();
|
||||
}
|
Loading…
Reference in New Issue
Block a user