annotate nodejs/njs_mb_supp.h @ 1498:fc4169113259

Show popup menu for right click on a transition
author Thinker K.F. Li <thinker@codemud.net>
date Tue, 03 May 2011 13:00:20 +0800
parents e415c55b4a0d
children
rev   line source
822
586e50f82c1f Unify coding style tag for emacs and vim.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 681
diff changeset
1 // -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 4; -*-
586e50f82c1f Unify coding style tag for emacs and vim.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 681
diff changeset
2 // vim: sw=4:ts=8:sts=4
1056
88bd0eee2b00 Rename X_supp_njs.[ch] to njs_mb_supp.[ch].
Thinker K.F. Li <thinker@codemud.net>
parents: 1055
diff changeset
3 #ifndef __NJS_MB_SUPP_H_
88bd0eee2b00 Rename X_supp_njs.[ch] to njs_mb_supp.[ch].
Thinker K.F. Li <thinker@codemud.net>
parents: 1055
diff changeset
4 #define __NJS_MB_SUPP_H_
550
127499ab2412 Upgrade ndoejs plugin to level of a new runtime.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
5
560
ce7a35abcb0d Function to instantiate coord for Javascript
Thinker K.F. Li <thinker@branda.to>
parents: 556
diff changeset
6 #include <ev.h>
1039
176cba3ad32c IO manager for njs
Thinker K.F. Li <thinker@codemud.net>
parents: 871
diff changeset
7 #include <mb_backend.h>
560
ce7a35abcb0d Function to instantiate coord for Javascript
Thinker K.F. Li <thinker@branda.to>
parents: 556
diff changeset
8
ce7a35abcb0d Function to instantiate coord for Javascript
Thinker K.F. Li <thinker@branda.to>
parents: 556
diff changeset
9 typedef struct _njs_runtime {
1055
1375aa8629ac Rename njs_runtime_t::xrt to njs_runtime_t::mb_rt
Thinker K.F. Li <thinker@codemud.net>
parents: 1053
diff changeset
10 mb_rt_t *mb_rt;
560
ce7a35abcb0d Function to instantiate coord for Javascript
Thinker K.F. Li <thinker@branda.to>
parents: 556
diff changeset
11 } njs_runtime_t;
550
127499ab2412 Upgrade ndoejs plugin to level of a new runtime.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
12
1053
df6ee4568ca2 Rename X_njs_MB_* to njs_mb_* for nodejs plugin.
Thinker K.F. Li <thinker@codemud.net>
parents: 1042
diff changeset
13 extern void njs_mb_reg_timer_man(void);
df6ee4568ca2 Rename X_njs_MB_* to njs_mb_* for nodejs plugin.
Thinker K.F. Li <thinker@codemud.net>
parents: 1042
diff changeset
14 extern void njs_mb_reg_IO_man(void);
df6ee4568ca2 Rename X_njs_MB_* to njs_mb_* for nodejs plugin.
Thinker K.F. Li <thinker@codemud.net>
parents: 1042
diff changeset
15 /* extern void njs_mb_init_handle_connection(njs_runtime_t *rt); */
df6ee4568ca2 Rename X_njs_MB_* to njs_mb_* for nodejs plugin.
Thinker K.F. Li <thinker@codemud.net>
parents: 1042
diff changeset
16 extern void njs_mb_free(njs_runtime_t *rt);
df6ee4568ca2 Rename X_njs_MB_* to njs_mb_* for nodejs plugin.
Thinker K.F. Li <thinker@codemud.net>
parents: 1042
diff changeset
17 extern njs_runtime_t *njs_mb_new(char *display_name, int w, int h);
df6ee4568ca2 Rename X_njs_MB_* to njs_mb_* for nodejs plugin.
Thinker K.F. Li <thinker@codemud.net>
parents: 1042
diff changeset
18 extern void njs_mb_free_keep_win(njs_runtime_t *rt);
df6ee4568ca2 Rename X_njs_MB_* to njs_mb_* for nodejs plugin.
Thinker K.F. Li <thinker@codemud.net>
parents: 1042
diff changeset
19 extern njs_runtime_t *njs_mb_new_with_win(void *display, long win);
df6ee4568ca2 Rename X_njs_MB_* to njs_mb_* for nodejs plugin.
Thinker K.F. Li <thinker@codemud.net>
parents: 1042
diff changeset
20 extern int njs_mb_flush(njs_runtime_t *rt);
df6ee4568ca2 Rename X_njs_MB_* to njs_mb_* for nodejs plugin.
Thinker K.F. Li <thinker@codemud.net>
parents: 1042
diff changeset
21 extern void njs_mb_handle_single_event(njs_runtime_t *rt, void *evt);
df6ee4568ca2 Rename X_njs_MB_* to njs_mb_* for nodejs plugin.
Thinker K.F. Li <thinker@codemud.net>
parents: 1042
diff changeset
22 extern void njs_mb_no_more_event(njs_runtime_t *rt);
df6ee4568ca2 Rename X_njs_MB_* to njs_mb_* for nodejs plugin.
Thinker K.F. Li <thinker@codemud.net>
parents: 1042
diff changeset
23 extern mb_rt_t *_njs_mb_get_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
24
1058
3a03b0953e22 Rename xrt to mb_rt.
Thinker K.F. Li <thinker@codemud.net>
parents: 1056
diff changeset
25 #define njs_mb_kbevents(rt) mb_runtime_kbevents((rt)->mb_rt)
3a03b0953e22 Rename xrt to mb_rt.
Thinker K.F. Li <thinker@codemud.net>
parents: 1056
diff changeset
26 #define njs_mb_rdman(rt) mb_runtime_rdman((rt)->mb_rt)
3a03b0953e22 Rename xrt to mb_rt.
Thinker K.F. Li <thinker@codemud.net>
parents: 1056
diff changeset
27 #define njs_mb_timer_man(rt) mb_runtime_timer_man((rt)->mb_rt)
1060
e415c55b4a0d Stop using ob as acronym observer
Thinker K.F. Li <thinker@codemud.net>
parents: 1058
diff changeset
28 #define njs_mb_observer_factory(rt) mb_runtime_observer_factory((rt)->mb_rt)
1058
3a03b0953e22 Rename xrt to mb_rt.
Thinker K.F. Li <thinker@codemud.net>
parents: 1056
diff changeset
29 #define njs_mb_img_ldr(rt) mb_runtime_img_ldr((rt)->mb_rt)
555
962d8436a303 Define functions to fill gap of njs runtime.
Thinker K.F. Li <thinker@branda.to>
parents: 553
diff changeset
30
1056
88bd0eee2b00 Rename X_supp_njs.[ch] to njs_mb_supp.[ch].
Thinker K.F. Li <thinker@codemud.net>
parents: 1055
diff changeset
31 #endif /* __NJS_MB_SUPP_H_ */