Mercurial > MadButterfly
annotate nodejs/observer.m4 @ 1388:669f79a4ecaf
Fix the parseUse which setup parameter to the wrong object.
author | wycc |
---|---|
date | Fri, 25 Mar 2011 03:54:45 +0800 |
parents | 799c852b9065 |
children |
rev | line source |
---|---|
679
799c852b9065
Extract event info from C object to JS object
Thinker K.F. Li <thinker@branda.to>
parents:
675
diff
changeset
|
1 define([PROJ_PREFIX], [xnjsmb_auto_])dnl |
799c852b9065
Extract event info from C object to JS object
Thinker K.F. Li <thinker@branda.to>
parents:
675
diff
changeset
|
2 dnl |
648
e13dbfd37eab
JS binding generator and observer definition with the generator
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
3 STRUCT([observer], [observer_t], |
e13dbfd37eab
JS binding generator and observer definition with the generator
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
4 [INT([type])], []) |
e13dbfd37eab
JS binding generator and observer definition with the generator
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
5 |
e13dbfd37eab
JS binding generator and observer definition with the generator
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
6 STRUCT([subject], [subject_t], [], |
651
aa52883534fc
Code generated by generator can be built
Thinker K.F. Li <thinker@branda.to>
parents:
650
diff
changeset
|
7 [METHOD([add_event_observer], [_subject_add_event_observer], |
649
2030e5d9f7f7
Support return value for methodes of JS binding
Thinker K.F. Li <thinker@branda.to>
parents:
648
diff
changeset
|
8 (INT([type]), FUNC([handler])), 2, |
2030e5d9f7f7
Support return value for methodes of JS binding
Thinker K.F. Li <thinker@branda.to>
parents:
648
diff
changeset
|
9 [OBJ([observer], [observer_t])]), |
651
aa52883534fc
Code generated by generator can be built
Thinker K.F. Li <thinker@branda.to>
parents:
650
diff
changeset
|
10 METHOD([remove_observer], [_subject_remove_observer], |
666
b6fb543d69ee
Use binding generator to implement mb_rt
Thinker K.F. Li <thinker@branda.to>
parents:
658
diff
changeset
|
11 (OBJ([observer], [observer], [observer_t])), 1, [])]) |
650
123e7eeff10c
Generate JS binding for a function
Thinker K.F. Li <thinker@branda.to>
parents:
649
diff
changeset
|
12 |
651
aa52883534fc
Code generated by generator can be built
Thinker K.F. Li <thinker@branda.to>
parents:
650
diff
changeset
|
13 STRUCT([event], [event_t], |
675
c643af2095c5
Keep and retrieve respective js object to/from property store
Thinker K.F. Li <thinker@branda.to>
parents:
666
diff
changeset
|
14 [INT([type]), |
c643af2095c5
Keep and retrieve respective js object to/from property store
Thinker K.F. Li <thinker@branda.to>
parents:
666
diff
changeset
|
15 ACCESSOR([tgt], [xnjsmb_event_tgt_getter], [xnjsmb_event_tgt_setter]), |
c643af2095c5
Keep and retrieve respective js object to/from property store
Thinker K.F. Li <thinker@branda.to>
parents:
666
diff
changeset
|
16 ACCESSOR([cur_tgt], [xnjsmb_event_cur_tgt_getter], |
c643af2095c5
Keep and retrieve respective js object to/from property store
Thinker K.F. Li <thinker@branda.to>
parents:
666
diff
changeset
|
17 [xnjsmb_event_cur_tgt_setter]), |
679
799c852b9065
Extract event info from C object to JS object
Thinker K.F. Li <thinker@branda.to>
parents:
675
diff
changeset
|
18 INT([flags])], [], (([STMOD], [xnjsmb_event_mod]))) |