--- rxvt-unicode/src/rxvtperl.h 2006/01/05 01:04:10 1.8 +++ rxvt-unicode/src/rxvtperl.h 2006/01/07 19:29:17 1.13 @@ -6,17 +6,18 @@ #define RXVTPERL_H_ #if ENABLE_PERL +# define SHOULD_INVOKE(htype) rxvt_perl.should_invoke [htype] +# define HOOK_INVOKE(args) rxvt_perl.invoke args #include "rxvt.h" -#define PERL_INVOKE(args) rxvt_perl.invoke args - enum data_type { DT_END, DT_INT, DT_LONG, - DT_STRING, - DT_USTRING_LEN, + DT_STR, + DT_STR_LEN, + DT_WCS_LEN, DT_XEVENT, }; @@ -27,6 +28,12 @@ HOOK_NUM, }; +struct rxvt_perl_term +{ + void *self; + unsigned long grabtime; +}; + struct rxvt_perl_interp { rxvt_perl_interp (); @@ -36,12 +43,14 @@ void init (); bool invoke (rxvt_term *term, hook_type htype, ...); + void line_update (rxvt_term *term); }; extern struct rxvt_perl_interp rxvt_perl; #else -# define PERL_INVOKE(args) false +# define SHOULD_INVOKE(htype) false +# define HOOK_INVOKE(args) false #endif #endif