changeset 555:962d8436a303 Android_Skia

Define functions to fill gap of njs runtime. We translate functions of njs runtime to instructions of calling functions of X runtime. They are simple macros.
author Thinker K.F. Li <thinker@branda.to>
date Sun, 06 Jun 2010 15:27:28 +0800
parents 4caf6090825f
children c9d23f7279a4
files nodejs/X_supp_njs.h
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/nodejs/X_supp_njs.h	Sun Jun 06 14:15:25 2010 +0800
+++ b/nodejs/X_supp_njs.h	Sun Jun 06 15:27:28 2010 +0800
@@ -9,4 +9,10 @@
 extern njs_runtime_t *X_njs_MB_new(char *display_name, int w, int h);
 extern void *_X_njs_MB_get_X_runtime(njs_runtime_t *rt);
 
+#define X_njs_MB_kbevents(rt) X_MB_kbevents((rt)->xrt)
+#define X_njs_MB_rdman(rt) X_MB_rdman((rt)->xrt)
+#define X_njs_MB_tman(rt) X_MB_tman((rt)->xrt)
+#define X_njs_MB_ob_factory(rt) X_MB_ob_factory((rt)->xrt)
+#define X_njs_MB_img_ldr(rt) X_MB_img_ldr((rt)->xrt)
+
 #endif /* __X_SUPP_NJS_H_ */