ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtperl.h
Revision: 1.6
Committed: Wed Jan 4 00:09:12 2006 UTC (18 years, 4 months ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.5: +1 -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 HOOK_OSC_SEQ,
42
43 HOOK_REFRESH_BEGIN,
44 HOOK_REFRESH_END,
45
46 HOOK_KEYBOARD_COMMAND,
47
48 HOOK_MOUSE_CLICK,
49 HOOK_MOUSE_MOVE,
50
51 HOOK_NUM,
52 };
53
54 struct rxvt_perl_interp
55 {
56 rxvt_perl_interp ();
57 ~rxvt_perl_interp ();
58
59 bool should_invoke[HOOK_NUM];
60
61 void init ();
62 bool invoke (rxvt_term *term, hook_type htype, ...);
63 };
64
65 extern struct rxvt_perl_interp rxvt_perl;
66
67 #else
68 # define PERL_INVOKE(args) false
69 #endif
70
71 #endif
72