comparison nodejs/observer.m4 @ 648:e13dbfd37eab

JS binding generator and observer definition with the generator
author Thinker K.F. Li <thinker@branda.to>
date Thu, 29 Jul 2010 01:02:29 +0800
parents
children 2030e5d9f7f7
comparison
equal deleted inserted replaced
644:c9f8c7e6f57e 648:e13dbfd37eab
1 STRUCT([event], [event_t],
2 [INT([event]), OBJ([tgt], [subject]),
3 OBJ([cur_tgt], [subject]), INT([flags])], [])
4
5 STRUCT([observer], [observer_t],
6 [INT([type])], [])
7
8 STRUCT([subject], [subject_t], [],
9 [METHOD([add_event_observer], [subject_add_event_observer],
10 (INT([type]), FUNC([handler])), 2),
11 METHOD([remove_observer], [subject_remove_observer],
12 (OBJ([observer], [observer_t])), 1)])