comparison nodejs/X_supp_njs.h @ 560:ce7a35abcb0d Android_Skia

Function to instantiate coord for Javascript
author Thinker K.F. Li <thinker@branda.to>
date Mon, 07 Jun 2010 11:47:34 +0800
parents c9d23f7279a4
children 13b15b7a463b
comparison
equal deleted inserted replaced
559:ef078d7c57b4 560:ce7a35abcb0d
1 #ifndef __X_SUPP_NJS_H_ 1 #ifndef __X_SUPP_NJS_H_
2 #define __X_SUPP_NJS_H_ 2 #define __X_SUPP_NJS_H_
3 3
4 struct _njs_runtime; 4 #include <ev.h>
5 typedef struct _njs_runtime njs_runtime_t; 5
6 typedef struct _njs_runtime {
7 ev_io iowatcher;
8 ev_timer tmwatcher;
9 int enable_io;
10 int enable_timer;
11 void *xrt;
12 } njs_runtime_t;
6 13
7 extern void X_njs_MB_init_handle_connection(njs_runtime_t *rt); 14 extern void X_njs_MB_init_handle_connection(njs_runtime_t *rt);
8 extern void X_njs_MB_free(njs_runtime_t *rt); 15 extern void X_njs_MB_free(njs_runtime_t *rt);
9 extern njs_runtime_t *X_njs_MB_new(char *display_name, int w, int h); 16 extern njs_runtime_t *X_njs_MB_new(char *display_name, int w, int h);
10 extern void *_X_njs_MB_get_X_runtime(njs_runtime_t *rt); 17 extern void *_X_njs_MB_get_X_runtime(njs_runtime_t *rt);