Home
last modified time | relevance | path

Searched refs:svcId (Results 1 - 14 of 14) sorted by relevance

/foundation/distributedhardware/device_manager/services/service/src/ipc/lite/
H A Dipc_server_stub.cpp55 CommonSvcId svcId = {0}; in DeathCb() local
57 if (IpcServerListenermgr::GetInstance().GetListenerByPkgName(pkgName, &svcId) != DM_OK) { in DeathCb()
65 sid.handle = svcId.handle; in DeathCb()
66 sid.token = svcId.token; in DeathCb()
67 sid.cookie = svcId.cookie; in DeathCb()
83 CommonSvcId svcId = {0}; in RegisterDeviceManagerListener() local
84 svcId.handle = svc.handle; in RegisterDeviceManagerListener()
85 svcId.token = svc.token; in RegisterDeviceManagerListener()
86 svcId.cookie = svc.cookie; in RegisterDeviceManagerListener()
104 svcId in RegisterDeviceManagerListener()
118 CommonSvcId svcId; UnRegisterDeviceManagerListener() local
[all...]
H A Dipc_server_listenermgr.cpp25 int32_t IpcServerListenermgr::RegisterListener(std::string &pkgName, const CommonSvcId *svcId) in RegisterListener() argument
27 if (pkgName == "" || svcId == nullptr) { in RegisterListener()
33 dmListenerMap_[pkgName] = *svcId; in RegisterListener()
37 int32_t IpcServerListenermgr::GetListenerByPkgName(std::string &pkgName, CommonSvcId *svcId) in GetListenerByPkgName() argument
39 if (pkgName == "" || svcId == nullptr) { in GetListenerByPkgName()
49 *svcId = iter->second; in GetListenerByPkgName()
H A Dipc_server_listener.cpp26 void IpcServerListener::CommonSvcToIdentity(CommonSvcId *svcId, SvcIdentity *identity) in CommonSvcToIdentity() argument
28 identity->handle = svcId->handle; in CommonSvcToIdentity()
29 identity->token = svcId->token; in CommonSvcToIdentity()
30 identity->cookie = svcId->cookie; in CommonSvcToIdentity()
35 CommonSvcId svcId; in GetIdentityByPkgName() local
36 if (IpcServerListenermgr::GetInstance().GetListenerByPkgName(name, &svcId) != DM_OK) { in GetIdentityByPkgName()
40 CommonSvcToIdentity(&svcId, svc); in GetIdentityByPkgName()
83 CommonSvcId svcId = kv.second; in SendAll() local
84 CommonSvcToIdentity(&svcId, &svc); in SendAll()
/foundation/communication/dsoftbus/core/frame/small/client_manager/src/
H A Dsoftbus_client_info_manager.c50 int SERVER_RegisterService(const char *name, const struct CommonScvId *svcId) in SERVER_RegisterService() argument
52 if (name == NULL || svcId == NULL) { in SERVER_RegisterService()
75 clientInfo->handle = svcId->handle; in SERVER_RegisterService()
76 clientInfo->token = svcId->token; in SERVER_RegisterService()
77 clientInfo->cookie = svcId->cookie; in SERVER_RegisterService()
93 int SERVER_GetIdentityByPkgName(const char *name, struct CommonScvId *svcId) in SERVER_GetIdentityByPkgName() argument
95 if (name == NULL || svcId == NULL) { in SERVER_GetIdentityByPkgName()
113 svcId->handle = clientInfo->handle; in SERVER_GetIdentityByPkgName()
114 svcId->token = clientInfo->token; in SERVER_GetIdentityByPkgName()
115 svcId in SERVER_GetIdentityByPkgName()
146 SERVER_GetAllClientIdentity(struct CommonScvId *svcId, int num) SERVER_GetAllClientIdentity() argument
[all...]
/foundation/communication/ipc/ipc/native/c/ipc/src/liteos_m/
H A Dserializer_inner.c43 SvcIdentity *svcId = ReadBuffer(io, sizeof(SvcIdentity)); in ReadRemoteObject() local
44 if (svcId == NULL) { in ReadRemoteObject()
47 svc->handle = svcId->handle; in ReadRemoteObject()
48 svc->token = svcId->token; in ReadRemoteObject()
49 svc->cookie = svcId->cookie; in ReadRemoteObject()
50 WaitForProxyInit(svcId); in ReadRemoteObject()
/foundation/communication/dsoftbus/core/frame/small/init/src/
H A Dsoftbus_server_stub.c102 struct CommonScvId svcId = {0}; in ClientDeathCb() local
103 if (SERVER_GetIdentityByPkgName((const char *)argStrcut->pkgName, &svcId) != SOFTBUS_OK) { in ClientDeathCb()
114 sid.handle = (int32_t)svcId.handle; in ClientDeathCb()
115 sid.token = (uintptr_t)svcId.token; in ClientDeathCb()
116 sid.cookie = (uintptr_t)svcId.cookie; in ClientDeathCb()
125 struct CommonScvId svcId = {0}; in ServerRegisterService() local
140 svcId.handle = svc.handle; in ServerRegisterService()
141 svcId.token = svc.token; in ServerRegisterService()
142 svcId.cookie = svc.cookie; in ServerRegisterService()
166 svcId in ServerRegisterService()
[all...]
/foundation/communication/dsoftbus/core/frame/small/client_manager/include/
H A Dsoftbus_client_info_manager.h28 int SERVER_RegisterService(const char *name, const struct CommonScvId *svcId);
30 int SERVER_GetIdentityByPkgName(const char *name, struct CommonScvId *svcId);
36 int SERVER_GetAllClientIdentity(struct CommonScvId *svcId, int num);
/foundation/communication/dsoftbus/sdk/frame/small/src/
H A Dsoftbus_client_stub.c94 struct CommonScvId svcId = {0}; in InnerRegisterService() local
95 if (GetClientIdentity(&svcId.handle, &svcId.token, &svcId.cookie) != SOFTBUS_OK) { in InnerRegisterService()
103 while (RegisterService(clientName[i], &svcId) != SOFTBUS_OK) { in InnerRegisterService()
251 struct CommonScvId svcId = {0}; in ClientRegisterService() local
252 if (GetClientIdentity(&svcId.handle, &svcId.token, &svcId.cookie) != SOFTBUS_OK) { in ClientRegisterService()
257 while (RegisterService(pkgName, &svcId) ! in ClientRegisterService()
[all...]
H A Dsoftbus_server_proxy.c70 int32_t RegisterService(const char *name, const struct CommonScvId *svcId) in RegisterService() argument
73 if ((svcId == NULL) || (name == NULL)) { in RegisterService()
84 svc.handle = svcId->handle; in RegisterService()
85 svc.token = svcId->token; in RegisterService()
86 svc.cookie = svcId->cookie; in RegisterService()
/foundation/communication/dsoftbus/core/bus_center/ipc/small/src/
H A Dbus_center_client_proxy.c31 struct CommonScvId svcId = {0}; in GetSvcIdentityByPkgName() local
32 if (SERVER_GetIdentityByPkgName(pkgName, &svcId) != SOFTBUS_OK) { in GetSvcIdentityByPkgName()
36 svc->handle = svcId.handle; in GetSvcIdentityByPkgName()
37 svc->token = svcId.token; in GetSvcIdentityByPkgName()
38 svc->cookie = svcId.cookie; in GetSvcIdentityByPkgName()
48 struct CommonScvId *svcId = (struct CommonScvId *)SoftBusMalloc(sizeof(struct CommonScvId) * num); in GetAllClientIdentity() local
49 if (svcId == NULL) { in GetAllClientIdentity()
53 (void)memset_s(svcId, sizeof(struct CommonScvId) * num, 0, sizeof(struct CommonScvId) * num); in GetAllClientIdentity()
54 if (SERVER_GetAllClientIdentity(svcId, num) != SOFTBUS_OK) { in GetAllClientIdentity()
55 SoftBusFree(svcId); in GetAllClientIdentity()
[all...]
/foundation/distributedhardware/device_manager/services/service/include/ipc/lite/
H A Dipc_server_listenermgr.h45 int32_t RegisterListener(std::string &pkgName, const CommonSvcId *svcId);
52 int32_t GetListenerByPkgName(std::string &pkgName, CommonSvcId *svcId);
H A Dipc_server_listener.h55 void CommonSvcToIdentity(CommonSvcId *svcId, SvcIdentity *identity);
/foundation/communication/dsoftbus/sdk/frame/small/include/
H A Dsoftbus_server_proxy.h26 int32_t RegisterService(const char *name, const struct CommonScvId *svcId);
/foundation/communication/dsoftbus/core/transmission/ipc/small/
H A Dtrans_client_proxy.c31 struct CommonScvId svcId = {0}; in GetSvcIdentityByPkgName() local
32 int32_t ret = SERVER_GetIdentityByPkgName(pkgName, &svcId); in GetSvcIdentityByPkgName()
37 svc->handle = (int32_t)svcId.handle; in GetSvcIdentityByPkgName()
38 svc->token = (uintptr_t)svcId.token; in GetSvcIdentityByPkgName()
39 svc->cookie = (uintptr_t)svcId.cookie; in GetSvcIdentityByPkgName()

Completed in 4 milliseconds