mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 11:19:17 +02:00
Add ply_terminal_set_fd()
This commit is contained in:
parent
1d740d3c22
commit
20f8093b72
2 changed files with 9 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue