Rationalise the pseudo tty handling.

This commit is contained in:
Jonathan Naylor
2020-06-27 22:33:24 +01:00
parent bdb1c49bae
commit d1a809808b
4 changed files with 120 additions and 188 deletions

View File

@@ -27,12 +27,15 @@
class CPseudoTTYController : public CSerialController {
public:
CPseudoTTYController(const std::string& device, unsigned int speed, bool assertRTS = false);
CPseudoTTYController(const std::string& symlink, unsigned int speed, bool assertRTS = false);
virtual ~CPseudoTTYController();
virtual bool open();
virtual void close();
protected:
std::string m_symlink;
};
#endif