Added ICMPv6 Packet Parser and Unittests for different ICMP Packages.
[senf.git] / Console / Readline.hh
index 7ac5741..09a9e61 100644 (file)
@@ -40,6 +40,8 @@ namespace senf {
 namespace console {
 namespace detail {
 
+#ifndef DOXYGEN
+
     /** \brief Internal: GNU readline based ClientReader implementation
         
         This implementation of the ClientReader interface uses GNU readline library to provide a
@@ -63,13 +65,14 @@ namespace detail {
         void callback(std::string line);
         void write(std::string text);
         void terminate();
+        void eof();
         
     private:
         virtual void v_disablePrompt();
         virtual void v_enablePrompt();
         virtual void v_translate(std::string & data);
 
-        void charEvent(Scheduler::EventId event);
+        void charEvent(int event);
 
         static ReadlineClientReader * instance_;
         int ch_;
@@ -78,6 +81,11 @@ namespace detail {
         char promptBuffer_[1024];
         SchedulerBinding schedBinding_;
         bool terminate_;
+
+        char * savedLineBuffer_;
+        int savedPoint_;
+        int savedEnd_;
+        int savedMark_;
     };
 
     /** \brief Internal: Safe GNU readline based ClientReader implementation
@@ -101,6 +109,8 @@ namespace detail {
         boost::scoped_ptr<ClientReader> reader_;
     };
 
+#endif
+
 }}}
 
 ///////////////////////////////hh.e////////////////////////////////////////