diff nodejs/X_supp_njs.c @ 556:c9d23f7279a4 Android_Skia

The first testcase that nodejs code can show a MadButterfly window. This testcase call MadButterfly from Javascript with nodejs framework. The testcase show a MadButterfly window in X.
author Thinker K.F. Li <thinker@branda.to>
date Sun, 06 Jun 2010 19:13:21 +0800
parents 4caf6090825f
children ce7a35abcb0d
line wrap: on
line diff
--- a/nodejs/X_supp_njs.c	Sun Jun 06 15:27:28 2010 +0800
+++ b/nodejs/X_supp_njs.c	Sun Jun 06 19:13:21 2010 +0800
@@ -68,7 +68,7 @@
     mb_tman_t *tman;
     redraw_man_t *rdman;
     mb_timeval_t now;
-    extern int _X_MB_flush_x_conn_nodejs(void *rt);
+    extern int _X_MB_flush_x_conn_for_nodejs(void *rt);
     
     tman = X_MB_tman(rt->xrt);
     get_now(&now);
@@ -76,7 +76,7 @@
 
     rdman = X_MB_rdman(rt->xrt);
     rdman_redraw_changed(rdman);
-    _X_MB_flush_x_conn_nodejs(rt->xrt);
+    _X_MB_flush_x_conn_for_nodejs(rt->xrt);
     
     set_next_timeout(rt);
 }
@@ -86,7 +86,7 @@
  * \param rt is a runtime object for X.
  */
 void
-X_njs_MB_handle_connection(njs_runtime_t *rt) {
+X_njs_MB_init_handle_connection(njs_runtime_t *rt) {
     void *xrt = rt->xrt;
     mb_tman_t *tman;
     mb_timeval_t now, tmo;