Mercurial > MadButterfly
changeset 1055:1375aa8629ac
Rename njs_runtime_t::xrt to njs_runtime_t::mb_rt
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 24 Nov 2010 15:49:26 +0800 |
parents | 0a9a633a23e5 |
children | 88bd0eee2b00 |
files | nodejs/X_supp_njs.c nodejs/X_supp_njs.h |
diffstat | 2 files changed, 11 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/nodejs/X_supp_njs.c Wed Nov 24 15:47:33 2010 +0800 +++ b/nodejs/X_supp_njs.c Wed Nov 24 15:49:26 2010 +0800 @@ -226,7 +226,7 @@ /*! * TODO: Release all IO and timer request. */ - mb_runtime_free(rt->xrt); + mb_runtime_free(rt->mb_rt); free(rt); } @@ -237,13 +237,13 @@ /* * TODO: Release all IO and timer request. */ - mb_runtime_free_keep_win(rt->xrt); + mb_runtime_free_keep_win(rt->mb_rt); free(rt); } int njs_mb_flush(njs_runtime_t *rt) { - mb_rt_t *mb_rt = rt->xrt; + mb_rt_t *mb_rt = rt->mb_rt; int r; r = mb_runtime_flush(mb_rt); @@ -260,7 +260,7 @@ mb_rt = mb_runtime_new(display_name, w, h); - rt->xrt = mb_rt; + rt->mb_rt = mb_rt; return rt; } @@ -280,7 +280,7 @@ mb_rt = mb_runtime_new_with_win((Display *)display, win); - rt->xrt = mb_rt; + rt->mb_rt = mb_rt; return rt; } @@ -290,10 +290,10 @@ void njs_mb_handle_single_event(njs_runtime_t *rt, void *evt) { #if 0 - void *xrt = rt->xrt; + void *mb_rt = rt->mb_rt; extern void _X_MB_handle_single_event(void *rt, void *evt); - _X_MB_handle_single_event(xrt, evt); + _X_MB_handle_single_event(mb_rt, evt); #endif } @@ -302,10 +302,10 @@ void njs_mb_no_more_event(njs_runtime_t *rt) { #if 0 - mb_rt_t *xrt = rt->xrt; + mb_rt_t *mb_rt = rt->mb_rt; extern void _X_MB_no_more_event(mb_rt_t *rt); - _X_MB_no_more_event(xrt); + _X_MB_no_more_event(mb_rt); #endif } @@ -313,5 +313,5 @@ */ mb_rt_t * _njs_mb_get_runtime(njs_runtime_t *rt) { - return rt->xrt; + return rt->mb_rt; }