void cfw_send_event(struct cfw_message * msg)
{
#ifdef SVC_MANAGER_DEBUG
    pr_debug(LOG_MODULE_CFW, "%s : msg:%d", __func__, CFW_MESSAGE_ID(msg));
#endif
    list_head_t * list = get_event_list(CFW_MESSAGE_ID(msg));
    if (list != NULL ) {
        list_foreach(list, send_event_callback, msg);
    }
}
Beispiel #2
0
void input_manager::add_input_for_action(
    const std::string &action_descriptor, const std::string &context, const input_event &event)
{
    t_input_event_list &events = get_event_list(action_descriptor, context);
    for( auto &events_a : events ) {
        if( events_a == event ) {
            return;
        }
    }
    events.push_back(event);
}
Beispiel #3
0
void input_manager::add_input_for_action(
    const std::string &action_descriptor, const std::string &context, const input_event &event)
{
    t_input_event_list &events = get_event_list(action_descriptor, context);
    for (t_input_event_list::iterator a = events.begin(); a != events.end(); ++a) {
        if (*a == event) {
            return;
        }
    }
    events.push_back(event);
}