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.3 by root, Mon Jan 2 20:35:39 2006 UTC vs.
Revision 1.17 by root, Thu Jan 12 01:38:37 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_STR,
19 DT_STR_LEN,
20 DT_WCS_LEN,
21 DT_XEVENT,
18}; 22};
19 23
20enum hook_type { 24enum hook_type {
21 HOOK_INIT = 0, // special, hardcoded 25# define def(sym) HOOK_ ## sym,
22 HOOK_DESTROY = 1, // values in urxvt.pm 26# include "hookinc.h"
23 HOOK_RESET, 27# undef def
24 HOOK_START, 28 HOOK_NUM,
29};
25 30
26 HOOK_SEL_BEGIN, 31struct rxvt_perl_term
27 HOOK_SEL_EXTEND, 32{
28 HOOK_SEL_MAKE, 33 void *self;
29 HOOK_SEL_GRAB, 34 unsigned long grabtime;
30
31 HOOK_FOCUS_IN,
32 HOOK_FOCUS_OUT,
33
34 HOOK_VIEW_CHANGE,
35 HOOK_SCROLL_BACK,
36 HOOK_TTY_ACTIVITY,
37
38 HOOK_REFRESH_BEGIN,
39 HOOK_REFRESH_END,
40
41 HOOK_NUM,
42}; 35};
43 36
44struct rxvt_perl_interp 37struct rxvt_perl_interp
45{ 38{
46 rxvt_perl_interp (); 39 char **perl_environ;
40
47 ~rxvt_perl_interp (); 41 ~rxvt_perl_interp ();
48 42
49 bool should_invoke[HOOK_NUM]; 43 bool should_invoke[HOOK_NUM];
50 44
51 void init (); 45 void init ();
52 bool invoke (rxvt_term *term, hook_type htype, ...); 46 bool invoke (rxvt_term *term, hook_type htype, ...);
47 void line_update (rxvt_term *term);
53}; 48};
54 49
55extern struct rxvt_perl_interp rxvt_perl; 50extern struct rxvt_perl_interp rxvt_perl;
56 51
57#else 52#else
53# define SHOULD_INVOKE(htype) false
58# define PERL_INVOKE(args) false 54# define HOOK_INVOKE(args) false
59#endif 55#endif
60 56
61#endif 57#endif
62 58

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines