Mercurial > MadButterfly
diff nodejs/mbfly_njs.cc @ 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/mbfly_njs.cc Thu Sep 23 10:51:25 2010 +0800 +++ b/nodejs/mbfly_njs.cc Fri Sep 24 03:22:19 2010 +0800 @@ -58,6 +58,16 @@ rdman_redraw_all(rdman); } +static void +xnjsmb_handle_single_event(njs_runtime_t *rt, void *evt) { + X_njs_MB_handle_single_event(rt, evt); +} + +static void +xnjsmb_no_more_event(njs_runtime_t *rt) { + X_njs_MB_no_more_event(rt); +} + static njs_runtime_t * _X_njs_MB_new(Handle<Object> self, char *display_name, int width, int height) {