… | |
… | |
4 | |
4 | |
5 | #ifndef RXVTPERL_H_ |
5 | #ifndef RXVTPERL_H_ |
6 | #define RXVTPERL_H_ |
6 | #define RXVTPERL_H_ |
7 | |
7 | |
8 | #if ENABLE_PERL |
8 | #if ENABLE_PERL |
|
|
9 | # define SHOULD_INVOKE(htype) rxvt_perl.should_invoke [htype] |
|
|
10 | # define HOOK_INVOKE(args) rxvt_perl.invoke args |
9 | |
11 | |
10 | #include "rxvt.h" |
12 | #include "rxvt.h" |
11 | |
|
|
12 | #define PERL_INVOKE(args) rxvt_perl.invoke args |
|
|
13 | |
13 | |
14 | enum data_type { |
14 | enum data_type { |
15 | DT_END, |
15 | DT_END, |
16 | DT_INT, |
16 | DT_INT, |
17 | DT_LONG, |
17 | DT_LONG, |
18 | DT_STRING, |
18 | DT_STRING, |
|
|
19 | DT_STRING_LEN, |
19 | DT_USTRING_LEN, |
20 | DT_USTRING_LEN, |
20 | DT_XEVENT, |
21 | DT_XEVENT, |
21 | }; |
22 | }; |
22 | |
23 | |
23 | enum hook_type { |
24 | enum hook_type { |
… | |
… | |
34 | |
35 | |
35 | bool should_invoke[HOOK_NUM]; |
36 | bool should_invoke[HOOK_NUM]; |
36 | |
37 | |
37 | void init (); |
38 | void init (); |
38 | bool invoke (rxvt_term *term, hook_type htype, ...); |
39 | bool invoke (rxvt_term *term, hook_type htype, ...); |
|
|
40 | void line_update (rxvt_term *term); |
39 | }; |
41 | }; |
40 | |
42 | |
41 | extern struct rxvt_perl_interp rxvt_perl; |
43 | extern struct rxvt_perl_interp rxvt_perl; |
42 | |
44 | |
43 | #else |
45 | #else |
|
|
46 | # define SHOULD_INVOKE(htype) false |
44 | # define PERL_INVOKE(args) false |
47 | # define HOOK_INVOKE(args) false |
45 | #endif |
48 | #endif |
46 | |
49 | |
47 | #endif |
50 | #endif |
48 | |
51 | |