# HG changeset patch # User Thinker K.F. Li # Date 1275809248 -28800 # Node ID 962d8436a303510d3b11a4d79a994d79e374abb7 # Parent 4caf6090825f8daf91b120386896fd6a0902fd8a 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. diff -r 4caf6090825f -r 962d8436a303 nodejs/X_supp_njs.h --- 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_ */