]> git.proxmox.com Git - mirror_lxc.git/blame - src/lxc/console.h
use same ifndef/define format for all headers
[mirror_lxc.git] / src / lxc / console.h
CommitLineData
63376d7d
DL
1/*
2 * lxc: linux Container library
3 *
4 * (C) Copyright IBM Corp. 2007, 2010
5 *
6 * Authors:
9afe19d6 7 * Daniel Lezcano <daniel.lezcano at free.fr>
63376d7d
DL
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
13 *
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
250b1eec 21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
63376d7d
DL
22 */
23
f1a4a029
ÇO
24#ifndef __LXC_CONSOLE_H
25#define __LXC_CONSOLE_H
26
b5159817
DE
27struct lxc_epoll_descr;
28struct lxc_container;
29
30extern int lxc_console_allocate(struct lxc_conf *conf, int sockfd, int *ttynum);
31extern int lxc_console_create(struct lxc_conf *);
32extern void lxc_console_delete(struct lxc_console *);
33extern void lxc_console_free(struct lxc_conf *conf, int fd);
34
35extern int lxc_console_mainloop_add(struct lxc_epoll_descr *, struct lxc_handler *);
36extern void lxc_console_sigwinch(int sig);
37extern int lxc_console(struct lxc_container *c, int ttynum,
38 int stdinfd, int stdoutfd, int stderrfd,
39 int escape);
40extern int lxc_console_getfd(struct lxc_container *c, int *ttynum,
41 int *masterfd);
0d9acb99 42extern int lxc_console_set_stdfds(struct lxc_handler *);
f1a4a029
ÇO
43
44#endif