Home
last modified time | relevance | path

Searched refs:protocolMgr (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_buscenter/src/
H A Dlnn_network_manager.c327 … if (protocolMgr == NULL || protocolMgr->getListenerModule == NULL || protocolMgr->init == NULL || in LnnRegistProtocol()
328 protocolMgr->enable == NULL) { in LnnRegistProtocol()
336 if (protocolMgr->init != NULL) { in LnnRegistProtocol()
337 ret = protocolMgr->init(protocolMgr); in LnnRegistProtocol()
344 protocolMgr->supportedNetif); in LnnRegistProtocol()
346 g_networkProtocols[i] = protocolMgr; in LnnRegistProtocol()
352 int32_t UnregistProtocol(LnnProtocolManager *protocolMgr) in UnregistProtocol() argument
355 if (protocolMgr == NULL) { in UnregistProtocol()
360 if (g_networkProtocols[i] == protocolMgr) { in UnregistProtocol()
362 if (protocolMgr->deinit != NULL) { in UnregistProtocol()
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_buscenter/
H A Dlnn_network_manager_test.cpp186 LnnProtocolManager protocolMgr; variable
187 memset_s(&protocolMgr, sizeof(protocolMgr), 0, sizeof(protocolMgr));
188 protocolMgr.init = LnnInitBtProtocolErr;
189 protocolMgr.enable = LnnEnableBtProtocol;
190 protocolMgr.getListenerModule = LnnGetBtListenerModule;
192 ret = LnnRegistProtocol(&protocolMgr);
195 protocolMgr.init = LnnInitBtProtocolOk;
196 ret = LnnRegistProtocol(&protocolMgr);
202 ret = UnregistProtocol(&protocolMgr);