Searched refs:g_nodeStateCallback (Results 1 – 1 of 1) sorted by relevance
25 static INodeStateCb* g_nodeStateCallback = NULL; variable68 int ret = RegNodeDeviceStateCb(DEF_PKG_NAME, g_nodeStateCallback); in SetUpTestCase()75 int ret = UnregNodeDeviceStateCb(g_nodeStateCallback); in TearDownTestCase()533 if (g_nodeStateCallback == NULL) { in SetupCallback()534 g_nodeStateCallback = (INodeStateCb*)calloc(1, sizeof(INodeStateCb)); in SetupCallback()535 g_nodeStateCallback->events = EVENT_NODE_STATE_MASK; in SetupCallback()536 g_nodeStateCallback->onNodeOnline = OnNodeOnline; in SetupCallback()537 g_nodeStateCallback->onNodeOffline = OnNodeOffline; in SetupCallback()538 g_nodeStateCallback->onNodeBasicInfoChanged = OnNodeBasicInfoChanged; in SetupCallback()539 g_nodeStateCallback->onNodeStatusChanged = onDefNodeStatusChanged; in SetupCallback()[all …]