Lines Matching defs:msg
26 int StateActions::Handle(const StateMsg &msg, State &nextState)
28 if (actions.find(msg.msgId) == actions.end()) {
31 return (actions[msg.msgId])(msg, nextState);
106 StateMsg msg(info.type, &info, sizeof(info));
107 HandleMsg(msg);
110 int ModuleStates::HandleMsg(const StateMsg &msg)
120 int ret = currState_->second->Handle(msg, nextState);
123 INTELL_VOICE_LOG_ERROR("%{public}s handle msg %{public}d fail", name_.c_str(), msg.msgId);
125 INTELL_VOICE_LOG_INFO("%{public}s state %{public}d no need to handle msg %{public}d", name_.c_str(),
126 currState_->first.state, msg.msgId);