# HG changeset patch # User Thinker K.F. Li # Date 1280109044 -28800 # Node ID 683889344459b7f1fd1e6d5017c287c9d621ffa0 # Parent 714cd6470bd9356a8cea8cc9644fbaae3782fc52 Skeleton of image loader for nodejs diff -r 714cd6470bd9 -r 683889344459 nodejs/mbfly_njs.cc --- a/nodejs/mbfly_njs.cc Mon Jul 26 09:39:51 2010 +0800 +++ b/nodejs/mbfly_njs.cc Mon Jul 26 09:50:44 2010 +0800 @@ -148,6 +148,7 @@ xnjsmb_shapes_init_mb_rt_temp(mb_rt_func); xnjsmb_paints_init_mb_rt_temp(mb_rt_func); xnjsmb_font_init_mb_rt_temp(mb_rt_func); + xnjsmb_img_ldr_init_mb_rt_temp(mb_rt_func); target->Set(String::New("mb_rt"), mb_rt_func->GetFunction()); } diff -r 714cd6470bd9 -r 683889344459 nodejs/mbfly_njs.h --- a/nodejs/mbfly_njs.h Mon Jul 26 09:39:51 2010 +0800 +++ b/nodejs/mbfly_njs.h Mon Jul 26 09:50:44 2010 +0800 @@ -32,4 +32,8 @@ /* From font.cc */ void xnjsmb_font_init_mb_rt_temp(v8::Handle mb_rt_temp); +/* From image_ldr.cc */ +void +xnjsmb_img_ldr_init_mb_rt_temp(v8::Handle mb_rt_temp); + #endif /* __MBFLY_NJS_H_ */ diff -r 714cd6470bd9 -r 683889344459 nodejs/wscript --- a/nodejs/wscript Mon Jul 26 09:39:51 2010 +0800 +++ b/nodejs/wscript Mon Jul 26 09:50:44 2010 +0800 @@ -23,7 +23,8 @@ obj = conf.new_task_gen('cxx', 'shlib', 'node_addon') obj.target = 'mbfly' - obj.source = 'mbfly_njs.cc coord.cc shapes.cc paints.cc font.cc' + obj.source = 'mbfly_njs.cc coord.cc shapes.cc paints.cc font.cc ' + \ + 'image_ldr.cc' obj.add_objects = 'X_supp_njs.o' obj.staticlib = 'mbfly'