src/libmetha/events.c
M_CODE
lm_notify(metha_t *m, unsigned ev)
{
    int x;

    m->event_cb(m, ev);

    if (ev < LM_EV_COUNT)
        for (x=0; x<m->observer_pool[ev].count; x++)
            m->observer_pool[ev].o[x].callback(m, m->observer_pool[ev].o[x].arg2);

    return M_FAILED;
}
/** 
 * Notify all observers of the given event
 **/
Notify all observers of the given event
Notify all observers of the given event
M_CODE
lm_notify(metha_t *m, unsigned ev)
{
    int x;
    m->event_cb(m, ev);
    if (ev < LM_EV_COUNT)
        for (x=0; x<m->observer_pool[ev].count; x++)
            m->observer_pool[ev].o[x].callback(m, m->observer_pool[ev].o[x].arg2);
    return M_FAILED;
}
M_CODE lm_notify ( metha_t * m , unsigned ev ) { int x ; m -> event_cb ( m , ev ) ; if ( ev < LM_EV_COUNT ) for ( x = 0 ; x < m -> observer_pool [ ev ] . count ; x ++ ) m -> observer_pool [ ev ] . o [ x ] . callback ( m , m -> observer_pool [ ev ] . o [ x ] . arg2 ) ; return M_FAILED ; }
Notify all observers of the given event
Notify all observers of the given event