… | |
… | |
18 | |
18 | |
19 | enum data_type { |
19 | enum data_type { |
20 | DT_END, // no further arguments |
20 | DT_END, // no further arguments |
21 | DT_INT, |
21 | DT_INT, |
22 | DT_LONG, |
22 | DT_LONG, |
23 | DT_STR, // 0-terminates string |
23 | DT_STR, // 0-terminated string |
24 | DT_STR_LEN, // string + length |
24 | DT_STR_LEN, // string + length |
|
|
25 | DT_WCS_LEN, // wchar_t* + length |
25 | DT_WCS_LEN, // wstring + length |
26 | DT_LCS_LEN, // long* + length |
26 | DT_XEVENT, |
27 | DT_XEVENT, |
27 | }; |
28 | }; |
28 | |
29 | |
29 | enum hook_type { |
30 | enum hook_type { |
30 | # define def(sym) HOOK_ ## sym, |
31 | # define def(sym) HOOK_ ## sym, |
… | |
… | |
44 | { |
45 | { |
45 | char **perl_environ; |
46 | char **perl_environ; |
46 | |
47 | |
47 | ~rxvt_perl_interp (); |
48 | ~rxvt_perl_interp (); |
48 | |
49 | |
49 | void init (); |
50 | void init (rxvt_term *term); |
50 | bool invoke (rxvt_term *term, hook_type htype, ...); |
51 | bool invoke (rxvt_term *term, hook_type htype, ...); |
51 | void line_update (rxvt_term *term); |
52 | void line_update (rxvt_term *term); |
52 | }; |
53 | }; |
53 | |
54 | |
54 | extern struct rxvt_perl_interp rxvt_perl; |
55 | extern struct rxvt_perl_interp rxvt_perl; |