comparison nodejs/observer.m4 @ 1067:7b4e80ab671a openvg

merge from default branch
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 01 Dec 2010 12:25:56 +0800
parents 799c852b9065
children
comparison
equal deleted inserted replaced
630:bd18951b51d5 1067:7b4e80ab671a
1 define([PROJ_PREFIX], [xnjsmb_auto_])dnl
2 dnl
3 STRUCT([observer], [observer_t],
4 [INT([type])], [])
5
6 STRUCT([subject], [subject_t], [],
7 [METHOD([add_event_observer], [_subject_add_event_observer],
8 (INT([type]), FUNC([handler])), 2,
9 [OBJ([observer], [observer_t])]),
10 METHOD([remove_observer], [_subject_remove_observer],
11 (OBJ([observer], [observer], [observer_t])), 1, [])])
12
13 STRUCT([event], [event_t],
14 [INT([type]),
15 ACCESSOR([tgt], [xnjsmb_event_tgt_getter], [xnjsmb_event_tgt_setter]),
16 ACCESSOR([cur_tgt], [xnjsmb_event_cur_tgt_getter],
17 [xnjsmb_event_cur_tgt_setter]),
18 INT([flags])], [], (([STMOD], [xnjsmb_event_mod])))