ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtperl.h
Revision: 1.5
Committed: Tue Jan 3 17:34:44 2006 UTC (18 years, 4 months ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.4: +6 -0 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 /*
2 * rxvtperl.h
3 */
4
5 #ifndef RXVTPERL_H_
6 #define RXVTPERL_H_
7
8 #if ENABLE_PERL
9
10 #include "rxvt.h"
11
12 #define PERL_INVOKE(args) rxvt_perl.invoke args
13
14 enum data_type {
15 DT_END,
16 DT_INT,
17 DT_LONG,
18 DT_STRING,
19 DT_XEVENT,
20 };
21
22 enum hook_type {
23 HOOK_INIT = 0, // special, hardcoded
24 HOOK_DESTROY = 1, // values in urxvt.pm
25 HOOK_RESET,
26 HOOK_START,
27
28 HOOK_SEL_BEGIN,
29 HOOK_SEL_EXTEND,
30 HOOK_SEL_MAKE,
31 HOOK_SEL_GRAB,
32
33 HOOK_SEL_CLICK,
34
35 HOOK_FOCUS_IN,
36 HOOK_FOCUS_OUT,
37
38 HOOK_VIEW_CHANGE,
39 HOOK_SCROLL_BACK,
40 HOOK_TTY_ACTIVITY,
41
42 HOOK_REFRESH_BEGIN,
43 HOOK_REFRESH_END,
44
45 HOOK_KEYBOARD_COMMAND,
46
47 HOOK_MOUSE_CLICK,
48 HOOK_MOUSE_MOVE,
49
50 HOOK_NUM,
51 };
52
53 struct rxvt_perl_interp
54 {
55 rxvt_perl_interp ();
56 ~rxvt_perl_interp ();
57
58 bool should_invoke[HOOK_NUM];
59
60 void init ();
61 bool invoke (rxvt_term *term, hook_type htype, ...);
62 };
63
64 extern struct rxvt_perl_interp rxvt_perl;
65
66 #else
67 # define PERL_INVOKE(args) false
68 #endif
69
70 #endif
71