annotate nodejs/X_supp_njs.h @ 559:ef078d7c57b4 Android_Skia

Use internal field to store njs_runtime_t object. Instead of using named property to keep reference of njs_runtime_t object, the internal field of v8 object is used.
author Thinker K.F. Li <thinker@branda.to>
date Mon, 07 Jun 2010 11:42:45 +0800
parents c9d23f7279a4
children ce7a35abcb0d
rev   line source
550
127499ab2412 Upgrade ndoejs plugin to level of a new runtime.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
1 #ifndef __X_SUPP_NJS_H_
127499ab2412 Upgrade ndoejs plugin to level of a new runtime.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
2 #define __X_SUPP_NJS_H_
127499ab2412 Upgrade ndoejs plugin to level of a new runtime.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
3
551
9e69c4a0f565 rename njs_ev_data_t to njs_runtime_t
Thinker K.F. Li <thinker@branda.to>
parents: 550
diff changeset
4 struct _njs_runtime;
9e69c4a0f565 rename njs_ev_data_t to njs_runtime_t
Thinker K.F. Li <thinker@branda.to>
parents: 550
diff changeset
5 typedef struct _njs_runtime njs_runtime_t;
550
127499ab2412 Upgrade ndoejs plugin to level of a new runtime.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
6
556
c9d23f7279a4 The first testcase that nodejs code can show a MadButterfly window.
Thinker K.F. Li <thinker@branda.to>
parents: 555
diff changeset
7 extern void X_njs_MB_init_handle_connection(njs_runtime_t *rt);
552
dd8d32b4c899 rename ev_data to rt
Thinker K.F. Li <thinker@branda.to>
parents: 551
diff changeset
8 extern void X_njs_MB_free(njs_runtime_t *rt);
551
9e69c4a0f565 rename njs_ev_data_t to njs_runtime_t
Thinker K.F. Li <thinker@branda.to>
parents: 550
diff changeset
9 extern njs_runtime_t *X_njs_MB_new(char *display_name, int w, int h);
553
0a77b88500bf rename _X_njs_MB_get_runtime to _X_njs_MB_get_X_runtime
Thinker K.F. Li <thinker@branda.to>
parents: 552
diff changeset
10 extern void *_X_njs_MB_get_X_runtime(njs_runtime_t *rt);
550
127499ab2412 Upgrade ndoejs plugin to level of a new runtime.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
11
555
962d8436a303 Define functions to fill gap of njs runtime.
Thinker K.F. Li <thinker@branda.to>
parents: 553
diff changeset
12 #define X_njs_MB_kbevents(rt) X_MB_kbevents((rt)->xrt)
962d8436a303 Define functions to fill gap of njs runtime.
Thinker K.F. Li <thinker@branda.to>
parents: 553
diff changeset
13 #define X_njs_MB_rdman(rt) X_MB_rdman((rt)->xrt)
962d8436a303 Define functions to fill gap of njs runtime.
Thinker K.F. Li <thinker@branda.to>
parents: 553
diff changeset
14 #define X_njs_MB_tman(rt) X_MB_tman((rt)->xrt)
962d8436a303 Define functions to fill gap of njs runtime.
Thinker K.F. Li <thinker@branda.to>
parents: 553
diff changeset
15 #define X_njs_MB_ob_factory(rt) X_MB_ob_factory((rt)->xrt)
962d8436a303 Define functions to fill gap of njs runtime.
Thinker K.F. Li <thinker@branda.to>
parents: 553
diff changeset
16 #define X_njs_MB_img_ldr(rt) X_MB_img_ldr((rt)->xrt)
962d8436a303 Define functions to fill gap of njs runtime.
Thinker K.F. Li <thinker@branda.to>
parents: 553
diff changeset
17
550
127499ab2412 Upgrade ndoejs plugin to level of a new runtime.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
18 #endif /* __X_SUPP_NJS_H_ */