ebfe49ca84
We will reuse the terminal connection in the stdio filesystem to implement /dev/tty. Therefor we need to access the terminal from different locations which is simplified if it is provided by a singleton.
35 lines
664 B
C++
35 lines
664 B
C++
/*
|
|
* \brief Terminal connection
|
|
* \author Josef Soentgen
|
|
* \date 2012-08-02
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2012 Genode Labs GmbH
|
|
*
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
* under the terms of the GNU General Public License version 2.
|
|
*/
|
|
|
|
#ifndef _NOUX__TERMINAL_CONNECTION_H_
|
|
#define _NOUX__TERMINAL_CONNECTION_H_
|
|
|
|
/* Genode includes */
|
|
#include <base/printf.h>
|
|
#include <base/lock.h>
|
|
#include <terminal_session/connection.h>
|
|
#include <util/string.h>
|
|
|
|
/* Noux includes */
|
|
#include <noux_session/sysio.h>
|
|
#include "file_system.h"
|
|
|
|
|
|
namespace Noux {
|
|
|
|
Terminal::Connection *terminal();
|
|
|
|
}
|
|
|
|
#endif /* _NOUX__TERMINAL_CONNECTION_H_ */
|