diff nodejs/observer.m4 @ 649:2030e5d9f7f7

Support return value for methodes of JS binding
author Thinker K.F. Li <thinker@branda.to>
date Thu, 29 Jul 2010 01:37:15 +0800
parents e13dbfd37eab
children 123e7eeff10c
line wrap: on
line diff
--- a/nodejs/observer.m4	Thu Jul 29 01:02:29 2010 +0800
+++ b/nodejs/observer.m4	Thu Jul 29 01:37:15 2010 +0800
@@ -7,6 +7,7 @@
 
 STRUCT([subject], [subject_t], [],
        [METHOD([add_event_observer], [subject_add_event_observer],
-       	       (INT([type]), FUNC([handler])), 2),
+       	       (INT([type]), FUNC([handler])), 2,
+	       [OBJ([observer], [observer_t])]),
         METHOD([remove_observer], [subject_remove_observer],
-	       (OBJ([observer], [observer_t])), 1)])
+	       (OBJ([observer], [observer_t])), 1, [])])