Annotation of nono/host/comdriver_stdio.h, revision 1.1.1.4

1.1       root        1: //
                      2: // nono
                      3: // Copyright (C) 2021 nono project
                      4: // Licensed under nono-license.txt
                      5: //
                      6: 
                      7: //
                      8: // シリアルポートの標準入出力ドライバ
                      9: //
                     10: 
                     11: #pragma once
                     12: 
                     13: #include "comdriver.h"
                     14: #include <termios.h>
                     15: 
                     16: class COMDriverStdio : public COMDriver
                     17: {
                     18:        using inherited = COMDriver;
                     19:  public:
1.1.1.3   root       20:        explicit COMDriverStdio(HostDevice *hostdev_);
1.1       root       21:        ~COMDriverStdio() override;
                     22: 
1.1.1.4 ! root       23:        bool InitDriver(bool startup) override;
1.1       root       24:        int Read() override;
                     25:        void Write(uint32 data) override;
                     26: 
                     27:  private:
                     28:        struct termios oldtc {};
1.1.1.4 ! root       29:        bool tc_changed {};
        !            30: 
        !            31:        // stdio を使えるのは同時に1人だけに限定する。
        !            32:        static bool stdio_occupied;
1.1       root       33: };

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.