console: lxc_terminal_getfd()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2018-02-27 16:58:49 +01:00
parent ee9102ff6e
commit c86e25841c
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D
3 changed files with 3 additions and 3 deletions

View File

@ -987,7 +987,7 @@ int lxc_terminal_master_cb(int fd, uint32_t events, void *cbdata,
return 0;
}
int lxc_console_getfd(struct lxc_container *c, int *ttynum, int *masterfd)
int lxc_terminal_getfd(struct lxc_container *c, int *ttynum, int *masterfd)
{
return lxc_cmd_console(c->name, ttynum, masterfd, c->config_path);
}

View File

@ -140,7 +140,7 @@ extern int lxc_console(struct lxc_container *c, int ttynum,
* Set ttynum to -1 to allocate the first available pty, or to a value within
* the range specified by lxc.tty.max to allocate a specific pty.
*/
extern int lxc_console_getfd(struct lxc_container *c, int *ttynum,
extern int lxc_terminal_getfd(struct lxc_container *c, int *ttynum,
int *masterfd);
/*

View File

@ -526,7 +526,7 @@ static int do_lxcapi_console_getfd(struct lxc_container *c, int *ttynum, int *ma
if (!c)
return -1;
return lxc_console_getfd(c, ttynum, masterfd);
return lxc_terminal_getfd(c, ttynum, masterfd);
}
WRAP_API_2(int, lxcapi_console_getfd, int *, int *)