Cygwin: pty: Define mask_switch_to_pcon_in() in fhandler_tty.cc.
- This patch moves the definition of mask_switch_to_pcon() from fhandler.h to fhandler_tty.cc.
This commit is contained in:
parent
d6485353a1
commit
6f054e640e
|
@ -2213,14 +2213,7 @@ class fhandler_pty_slave: public fhandler_pty_common
|
||||||
void set_switch_to_pcon (int fd);
|
void set_switch_to_pcon (int fd);
|
||||||
void reset_switch_to_pcon (void);
|
void reset_switch_to_pcon (void);
|
||||||
void push_to_pcon_screenbuffer (const char *ptr, size_t len);
|
void push_to_pcon_screenbuffer (const char *ptr, size_t len);
|
||||||
void mask_switch_to_pcon_in (bool mask)
|
void mask_switch_to_pcon_in (bool mask);
|
||||||
{
|
|
||||||
if (!mask && get_ttyp ()->pcon_pid &&
|
|
||||||
get_ttyp ()->pcon_pid != myself->pid &&
|
|
||||||
!!pinfo (get_ttyp ()->pcon_pid))
|
|
||||||
return;
|
|
||||||
get_ttyp ()->mask_switch_to_pcon_in = mask;
|
|
||||||
}
|
|
||||||
void fixup_after_attach (bool native_maybe, int fd);
|
void fixup_after_attach (bool native_maybe, int fd);
|
||||||
bool is_line_input (void)
|
bool is_line_input (void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1395,6 +1395,16 @@ fhandler_pty_slave::write (const void *ptr, size_t len)
|
||||||
return towrite;
|
return towrite;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
fhandler_pty_slave::mask_switch_to_pcon_in (bool mask)
|
||||||
|
{
|
||||||
|
if (!mask && get_ttyp ()->pcon_pid &&
|
||||||
|
get_ttyp ()->pcon_pid != myself->pid &&
|
||||||
|
!!pinfo (get_ttyp ()->pcon_pid))
|
||||||
|
return;
|
||||||
|
get_ttyp ()->mask_switch_to_pcon_in = mask;
|
||||||
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
fhandler_pty_common::to_be_read_from_pcon (void)
|
fhandler_pty_common::to_be_read_from_pcon (void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue