Add ply_terminal_set_fd()

This commit is contained in:
Peter Jones 2008-06-03 13:05:11 -04:00 committed by Peter Jones
parent 1d740d3c22
commit 20f8093b72
2 changed files with 9 additions and 0 deletions

View file

@ -134,6 +134,14 @@ ply_terminal_get_fd (ply_terminal_t *terminal)
return terminal->fd;
}
void
ply_terminal_set_fd (ply_terminal_t *terminal, int fd)
{
assert (terminal != NULL);
terminal->fd = fd;
}
const char *
ply_terminal_get_device_name (ply_terminal_t *terminal)
{

View file

@ -35,6 +35,7 @@ bool ply_terminal_create_device (ply_terminal_t *terminal);
bool ply_terminal_has_device (ply_terminal_t *terminal);
void ply_terminal_destroy_device (ply_terminal_t *terminal);
int ply_terminal_get_fd (ply_terminal_t *terminal);
void ply_terminal_set_fd (ply_terminal_t *terminal, int fd);
const char *ply_terminal_get_device_name (ply_terminal_t *terminal);
#endif