Home
last modified time | relevance | path

Searched refs:g_serverState (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/core/connection/ble/src/
H A Dsoftbus_conn_ble_server.c122 static BleServerState g_serverState = { variable
139 if (g_serverState.state != expectedState) { in UpdateBleServerStateInOrder()
146 g_serverState.state = nextState; in UpdateBleServerStateInOrder()
157 g_serverState.serviceHandle = -1; in ResetServerState()
158 g_serverState.connCharacteristicHandle = -1; in ResetServerState()
159 g_serverState.connDescriptorHandle = -1; in ResetServerState()
160 g_serverState.netCharacteristicHandle = -1; in ResetServerState()
161 g_serverState.netDescriptorHandle = -1; in ResetServerState()
248 rc = SoftBusMutexLock(&g_serverState.lock); in CheckUuidAndSetServiceHandle()
850 g_serverState.serviceHandle = -1; in BleServiceDeleteMsgHandler()
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/connection/br/src/
H A Dsoftbus_conn_br_connection.c68 static ServerState *g_serverState = NULL; variable
759 if (g_serverState != NULL) { in ConnBrStartServer()
781 g_serverState = serverState; in ConnBrStartServer()
788 if (g_serverState == NULL) { in ConnBrStopServer()
792 int32_t status = SoftBusMutexLock(&g_serverState->mutex); in ConnBrStopServer()
798 g_serverState->available = false; in ConnBrStopServer()
799 if (g_serverState->serverId != -1) { in ConnBrStopServer()
800 g_sppDriver->CloseSppServer(g_serverState->serverId); in ConnBrStopServer()
801 g_serverState->serverId = -1; in ConnBrStopServer()
803 (void)SoftBusMutexUnlock(&g_serverState->mutex); in ConnBrStopServer()
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/br/
H A Dconnection_br_connection_test.cpp300 g_serverState = &serverState;
304 g_serverState = nullptr;
313 g_serverState->serverId = 1;
317 g_serverState = nullptr;