FUNC_ENTRY;
GSList *l;
+ GSList *l1;
int found = 0;
int ret = UA_ERROR_NONE;
ua_user_state_info_s *user_state = NULL;
__ua_monitor_send_sensor_presence_cb(monitor, device_handle, sensor_info);
+ if (account && user_state) {
+ __ua_monitor_send_user_presence_cb(monitor, user_state);
+ }
+
+ if (!account) {
+ for (l1 = monitor->user_state; NULL != l1; l1 = g_slist_next(l1)) {
+ ua_user_state_info_s *user_state = l1->data;
+
+ if (user_state) {
+ UA_DBG("user_state->account [%s]", user_state->account);
+ __ua_monitor_send_user_presence_cb(monitor, user_state);
+ }
+ }
+ __ua_monitor_send_env_user_presence_cb(monitor);
+ }
+
FUNC_EXIT;
}