console: lxc_terminal_getfd()

parent ee9102ff
...@@ -987,7 +987,7 @@ int lxc_terminal_master_cb(int fd, uint32_t events, void *cbdata, ...@@ -987,7 +987,7 @@ int lxc_terminal_master_cb(int fd, uint32_t events, void *cbdata,
return 0; 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); return lxc_cmd_console(c->name, ttynum, masterfd, c->config_path);
} }
......
...@@ -140,7 +140,7 @@ extern int lxc_console(struct lxc_container *c, int ttynum, ...@@ -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 * 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. * 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); int *masterfd);
/* /*
......
...@@ -526,7 +526,7 @@ static int do_lxcapi_console_getfd(struct lxc_container *c, int *ttynum, int *ma ...@@ -526,7 +526,7 @@ static int do_lxcapi_console_getfd(struct lxc_container *c, int *ttynum, int *ma
if (!c) if (!c)
return -1; 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 *) WRAP_API_2(int, lxcapi_console_getfd, int *, int *)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment