… | |
… | |
959 | #endif |
959 | #endif |
960 | |
960 | |
961 | extern class rxvt_failure_exception { } rxvt_failure_exception; |
961 | extern class rxvt_failure_exception { } rxvt_failure_exception; |
962 | |
962 | |
963 | typedef callback1<void, const char *> log_callback; |
963 | typedef callback1<void, const char *> log_callback; |
|
|
964 | typedef callback1<int, int> getfd_callback; |
964 | |
965 | |
965 | extern void rxvt_vlog (const char *fmt, va_list arg_ptr); |
966 | extern void rxvt_vlog (const char *fmt, va_list arg_ptr); |
966 | extern void rxvt_log (const char *fmt, ...); |
967 | extern void rxvt_log (const char *fmt, ...); |
967 | extern void rxvt_warn (const char *fmt, ...); |
968 | extern void rxvt_warn (const char *fmt, ...); |
968 | extern void rxvt_fatal (const char *fmt, ...) __attribute__ ((noreturn)); |
969 | extern void rxvt_fatal (const char *fmt, ...) __attribute__ ((noreturn)); |
… | |
… | |
1045 | class keyboard_manager; |
1046 | class keyboard_manager; |
1046 | #endif |
1047 | #endif |
1047 | |
1048 | |
1048 | struct rxvt_term : zero_initialized, rxvt_vars { |
1049 | struct rxvt_term : zero_initialized, rxvt_vars { |
1049 | log_callback *log_hook; // log error messages through this hook, if != 0 |
1050 | log_callback *log_hook; // log error messages through this hook, if != 0 |
|
|
1051 | getfd_callback *getfd_hook; // convert remote to local fd, if != 0 |
1050 | |
1052 | |
1051 | struct mbstate mbstate; // current input multibyte state |
1053 | struct mbstate mbstate; // current input multibyte state |
1052 | |
1054 | |
1053 | unsigned char want_refresh:1, |
1055 | unsigned char want_refresh:1, |
1054 | #ifdef TRANSPARENT |
1056 | #ifdef TRANSPARENT |
… | |
… | |
1470 | { |
1472 | { |
1471 | l.t = (text_t *)talloc->alloc (); |
1473 | l.t = (text_t *)talloc->alloc (); |
1472 | l.r = (rend_t *)ralloc->alloc (); |
1474 | l.r = (rend_t *)ralloc->alloc (); |
1473 | } |
1475 | } |
1474 | |
1476 | |
|
|
1477 | #if 0 |
1475 | void lfree (line_t &l) |
1478 | void lfree (line_t &l) |
1476 | { |
1479 | { |
1477 | talloc->free (l.t); |
1480 | talloc->free (l.t); |
1478 | ralloc->free (l.r); |
1481 | ralloc->free (l.r); |
1479 | } |
1482 | } |
|
|
1483 | #endif |
1480 | |
1484 | |
1481 | void lresize (line_t &l) |
1485 | void lresize (line_t &l) |
1482 | { |
1486 | { |
1483 | if (!l.t) |
1487 | if (!l.t) |
1484 | return; |
1488 | return; |