ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtperl.h
(Generate patch)

Comparing rxvt-unicode/src/rxvtperl.h (file contents):
Revision 1.1 by root, Mon Jan 2 15:35:43 2006 UTC vs.
Revision 1.9 by root, Fri Jan 6 01:16:58 2006 UTC

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
14enum data_type { 14enum data_type {
15 DT_END, 15 DT_END,
16 DT_INT, 16 DT_INT,
17 DT_LONG, 17 DT_LONG,
18 DT_STRING,
19 DT_USTRING_LEN,
20 DT_XEVENT,
18}; 21};
19 22
20enum hook_type { 23enum hook_type {
21 HOOK_LOAD, 24# define def(sym) HOOK_ ## sym,
22 25# include "hookinc.h"
23 HOOK_INIT, 26# undef def
24 HOOK_RESET,
25 HOOK_START,
26 HOOK_DESTROY,
27
28 HOOK_SEL_BEGIN,
29 HOOK_SEL_EXTEND,
30 HOOK_SEL_MAKE,
31 HOOK_SEL_GRAB,
32
33 HOOK_FOCUS_IN,
34 HOOK_FOCUS_OUT,
35
36 HOOK_VIEW_CHANGE,
37 HOOK_SCROLL_BACK,
38 HOOK_TTY_ACTIVITY,
39
40 HOOK_REFRESH_BEGIN,
41 HOOK_REFRESH_END,
42
43 HOOK_NUM, 27 HOOK_NUM,
44}; 28};
45 29
46struct rxvt_perl_interp 30struct rxvt_perl_interp
47{ 31{
50 34
51 bool should_invoke[HOOK_NUM]; 35 bool should_invoke[HOOK_NUM];
52 36
53 void init (); 37 void init ();
54 bool invoke (rxvt_term *term, hook_type htype, ...); 38 bool invoke (rxvt_term *term, hook_type htype, ...);
39 void line_update (rxvt_term *term);
55}; 40};
56 41
57extern struct rxvt_perl_interp rxvt_perl; 42extern struct rxvt_perl_interp rxvt_perl;
58 43
59#else 44#else
45# define SHOULD_INVOKE(htype) false
60#define PERL_INVOKE(args) (void)0 46# define PERL_INVOKE(args) false
61#endif 47#endif
62 48
63#endif 49#endif
64 50

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines