comparison nodejs/X_supp_njs.h @ 1042:18256f404193 refine_backend_if

nodejs binding passes compiling
author Thinker K.F. Li <thinker@codemud.net>
date Tue, 23 Nov 2010 11:44:27 +0800
parents 22e5cf38d8e8
children df6ee4568ca2
comparison
equal deleted inserted replaced
1041:eb3d2e3381cb 1042:18256f404193
5 5
6 #include <ev.h> 6 #include <ev.h>
7 #include <mb_backend.h> 7 #include <mb_backend.h>
8 8
9 typedef struct _njs_runtime { 9 typedef struct _njs_runtime {
10 int enable_io;
11 int enable_timer;
12 mb_rt_t *xrt; 10 mb_rt_t *xrt;
13 } njs_runtime_t; 11 } njs_runtime_t;
14 12
15 extern void X_njs_MB_reg_timer_man(void); 13 extern void X_njs_MB_reg_timer_man(void);
16 extern void X_njs_MB_reg_IO_man(void); 14 extern void X_njs_MB_reg_IO_man(void);
17 extern void X_njs_MB_init_handle_connection(njs_runtime_t *rt); 15 /* extern void X_njs_MB_init_handle_connection(njs_runtime_t *rt); */
18 extern void X_njs_MB_free(njs_runtime_t *rt); 16 extern void X_njs_MB_free(njs_runtime_t *rt);
19 extern njs_runtime_t *X_njs_MB_new(char *display_name, int w, int h); 17 extern njs_runtime_t *X_njs_MB_new(char *display_name, int w, int h);
20 extern void X_njs_MB_free_keep_win(njs_runtime_t *rt); 18 extern void X_njs_MB_free_keep_win(njs_runtime_t *rt);
21 extern njs_runtime_t *X_njs_MB_new_with_win(void *display, long win); 19 extern njs_runtime_t *X_njs_MB_new_with_win(void *display, long win);
22 extern int X_njs_MB_flush(njs_runtime_t *rt); 20 extern int X_njs_MB_flush(njs_runtime_t *rt);