diff nodejs/X_supp_njs.h @ 869:c18058fb48ee

Export API for JS to feed X events. We need the API that JS code can feed X events to X runtime.
author Thinker K.F. Li <thinker@codemud.net>
date Fri, 24 Sep 2010 03:22:19 +0800
parents 586e50f82c1f
children 67d0fed24120
line wrap: on
line diff
--- a/nodejs/X_supp_njs.h	Thu Sep 23 10:51:25 2010 +0800
+++ b/nodejs/X_supp_njs.h	Fri Sep 24 03:22:19 2010 +0800
@@ -17,6 +17,8 @@
 extern void X_njs_MB_free(njs_runtime_t *rt);
 extern njs_runtime_t *X_njs_MB_new(char *display_name, int w, int h);
 extern int X_njs_MB_flush(njs_runtime_t *rt);
+extern void X_njs_MB_handle_single_event(njs_runtime_t *rt, void *evt);
+extern void X_njs_MB_no_more_event(njs_runtime_t *rt);
 extern void *_X_njs_MB_get_X_runtime(njs_runtime_t *rt);
 
 #define X_njs_MB_kbevents(rt) X_MB_kbevents((rt)->xrt)