Home
last modified time | relevance | path

Searched refs:cbId (Results 1 – 16 of 16) sorted by relevance

/foundation/communication/ipc/ipc/native/c/manager/src/
Dipc_skeleton.c99 int32_t AddDeathRecipient(SvcIdentity target, OnRemoteDead deathFunc, void *args, uint32_t *cbId) in AddDeathRecipient() argument
109 return ProcessAddDeathRecipient(target.handle, deathFunc, args, cbId); in AddDeathRecipient()
112 int32_t RemoveDeathRecipient(SvcIdentity target, uint32_t cbId) in RemoveDeathRecipient() argument
122 return ProcessRemoveDeathRecipient(target.handle, cbId); in RemoveDeathRecipient()
Dipc_process_skeleton.c275 int32_t ProcessAddDeathRecipient(int32_t handle, OnRemoteDead deathFunc, void *args, uint32_t *cbId) in ProcessAddDeathRecipient() argument
281 if (deathFunc == NULL || cbId == NULL) { in ProcessAddDeathRecipient()
306 *cbId = SetDeathHandlerPair(node, i, deathFunc, args); in ProcessAddDeathRecipient()
330 int32_t ProcessRemoveDeathRecipient(int32_t handle, uint32_t cbId) in ProcessRemoveDeathRecipient() argument
336 if (cbId >= MAX_DEATH_CALLBACK_NUM) { in ProcessRemoveDeathRecipient()
356 if (node->handler[cbId].usedFlag) { in ProcessRemoveDeathRecipient()
357 node->handler[cbId].usedFlag = false; in ProcessRemoveDeathRecipient()
358 node->handler[cbId].func = NULL; in ProcessRemoveDeathRecipient()
/foundation/distributedhardware/devicemanager/services/devicemanagerservice/src/ipc/lite/
Dipc_server_stub.cpp76 UnregisterDeathCallback(sid, svcId.cbId); in DeathCb()
117 uint32_t cbId = 0; in RegisterDeviceManagerListener() local
118 RegisterDeathCallback(NULL, sid, DeathCb, pkgName, &cbId); in RegisterDeviceManagerListener()
119 svcId.cbId = cbId; in RegisterDeviceManagerListener()
147 ret = UnregisterDeathCallback(sid, svcId.cbId); in UnRegisterDeviceManagerListener()
/foundation/communication/ipc/interfaces/innerkits/c/ipc/include/
Dipc_skeleton.h73 int32_t AddDeathRecipient(SvcIdentity target, OnRemoteDead deathFunc, void *args, uint32_t *cbId);
75 int32_t RemoveDeathRecipient(SvcIdentity target, uint32_t cbId);
/foundation/communication/dsoftbus/core/frame/small/init/src/
Dsoftbus_server_stub.c114 UnregisterDeathCallback(sid, svcId.cbId); in ClientDeathCb()
156 uint32_t cbId = 0; in ServerRegisterService() local
157 RegisterDeathCallback(NULL, sid, ClientDeathCb, pkgName, &cbId); in ServerRegisterService()
158 svcId.cbId = cbId; in ServerRegisterService()
/foundation/graphic/wms/services/ims/
Dinput_event_client_proxy.cpp64 uint32_t cbId = 0; in AddListener() local
65 …if (RegisterDeathCallback(NULL, svc, DeathCallback, const_cast<void*>(origin), &cbId) != LITEIPC_O… in AddListener()
69 struct ClientInfo clientInfo = { svc, cbId, alwaysInvoke }; in AddListener()
/foundation/communication/ipc/ipc/native/c/manager/include/
Dipc_process_skeleton.h66 int32_t ProcessAddDeathRecipient(int32_t handle, OnRemoteDead deathFunc, void *args, uint32_t *cbId
67 int32_t ProcessRemoveDeathRecipient(int32_t handle, uint32_t cbId);
/foundation/communication/ipc_lite/interfaces/kits/
Dliteipc_adapter.h94 …allback(const IpcContext* context, SvcIdentity sid, IpcMsgHandler func, void* arg, uint32_t* cbId);
95 int32_t UnregisterDeathCallback(SvcIdentity sid, uint32_t cbId);
/foundation/distributedhardware/devicemanager/services/devicemanagerservice/include/ipc/lite/
Dipc_server_listenermgr.h34 uint32_t cbId; member
/foundation/communication/dsoftbus/core/common/include/
Dsoftbus_ipc_def.h36 unsigned int cbId; member
/foundation/appexecfwk/appexecfwk_lite/services/bundlemgr_lite/tools/src/
Dcommand_parser.cpp176 uint32_t cbId = INITIAL_CBID; in RunAsInstallCommand() local
196 … if (RegisterDeathCallback(nullptr, sid, BmToolDeathNotify, nullptr, &cbId) != LITEIPC_OK) { in RunAsInstallCommand()
218 uint32_t cbId = INITIAL_CBID; in RunAsUninstallCommand() local
230 … if (RegisterDeathCallback(nullptr, sid, BmToolDeathNotify, nullptr, &cbId) != LITEIPC_OK) { in RunAsUninstallCommand()
/foundation/communication/ipc_lite/frameworks/liteipc/src/
Dliteipc_adapter.c918 …Callback(const IpcContext* context, SvcIdentity sid, IpcMsgHandler func, void* arg, uint32_t* cbId) in RegisterDeathCallback() argument
924 if ((func == NULL) || (cbId == NULL)) { in RegisterDeathCallback()
953 *cbId = SetDeathHandlerPair(node, i, func, arg); in RegisterDeathCallback()
968 *cbId = SetDeathHandlerPair(node, 0, func, arg); in RegisterDeathCallback()
976 int32_t UnregisterDeathCallback(SvcIdentity sid, uint32_t cbId) in UnregisterDeathCallback() argument
980 if (cbId >= MAX_DEATHCB_PER_SVC) { in UnregisterDeathCallback()
981 LOG(ERROR, "Wrong cbId:%u.", cbId); in UnregisterDeathCallback()
991 if ((node->isCallbackRuning == false) && (node->hdlerPairs[cbId].usedFlag == true)) { in UnregisterDeathCallback()
992 node->hdlerPairs[cbId].usedFlag = false; in UnregisterDeathCallback()
/foundation/communication/ipc/services/dbinder/c/include/
Ddbinder_types.h84 uint32_t cbId; member
/foundation/communication/ipc_lite/frameworks/liteipc_linux/src/
Dliteipc_adapter.c1100 …Callback(const IpcContext* context, SvcIdentity sid, IpcMsgHandler func, void* arg, uint32_t* cbId) in RegisterDeathCallback() argument
1105 if ((func == NULL) || (cbId == NULL)) { in RegisterDeathCallback()
1134 *cbId = SetDeathHandlerPair(node, i, func, arg); in RegisterDeathCallback()
1149 *cbId = SetDeathHandlerPair(node, 0, func, arg); in RegisterDeathCallback()
1158 int32_t UnregisterDeathCallback(SvcIdentity sid, uint32_t cbId) in UnregisterDeathCallback() argument
1162 if (cbId >= MAX_DEATHCB_PER_SVC) { in UnregisterDeathCallback()
1163 LOG(ERROR, "Wrong cbId:%d.", cbId); in UnregisterDeathCallback()
1173 if ((node->isCallbackRuning == false) && (node->hdlerPairs[cbId].usedFlag == true)) { in UnregisterDeathCallback()
1174 node->hdlerPairs[cbId].usedFlag = false; in UnregisterDeathCallback()
/foundation/graphic/wms/services/wms/
Dlite_wms.cpp218 uint32_t cbId = -1; in ClientRegister() local
224 if (RegisterDeathCallback(NULL, arg->sid, DeathCallback, arg, &cbId) != LITEIPC_OK) { in ClientRegister()
/foundation/communication/ipc/services/dbinder/c/src/
Ddbinder_service.c466 RPC_LOG_INFO("DbinderSaDeathRecipient cbiId %d", proxyObject->cbId); in DbinderSaDeathRecipient()
492 (void *)proxyObject, &proxyObject->cbId); in FindOrNewProxy()
502 RemoveDeathRecipient(*proxyObject->proxy, proxyObject->cbId); in FindOrNewProxy()