Mercurial > MadButterfly
comparison nodejs/observer.m4 @ 666:b6fb543d69ee
Use binding generator to implement mb_rt
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 04 Aug 2010 21:35:40 +0800 |
parents | 62c2de99b03a |
children | c643af2095c5 |
comparison
equal
deleted
inserted
replaced
665:7db0b76c9480 | 666:b6fb543d69ee |
---|---|
6 STRUCT([subject], [subject_t], [], | 6 STRUCT([subject], [subject_t], [], |
7 [METHOD([add_event_observer], [_subject_add_event_observer], | 7 [METHOD([add_event_observer], [_subject_add_event_observer], |
8 (INT([type]), FUNC([handler])), 2, | 8 (INT([type]), FUNC([handler])), 2, |
9 [OBJ([observer], [observer_t])]), | 9 [OBJ([observer], [observer_t])]), |
10 METHOD([remove_observer], [_subject_remove_observer], | 10 METHOD([remove_observer], [_subject_remove_observer], |
11 (OBJ([observer], [observer_t])), 1, [])]) | 11 (OBJ([observer], [observer], [observer_t])), 1, [])]) |
12 | 12 |
13 STRUCT([event], [event_t], | 13 STRUCT([event], [event_t], |
14 [INT([type]), OBJ([tgt], [subject], [subject_t]), | 14 [INT([type]), OBJ([tgt], [subject], [subject_t]), |
15 OBJ([cur_tgt], [subject], [subject_t]), INT([flags])], []) | 15 OBJ([cur_tgt], [subject], [subject_t]), INT([flags])], []) |