session_common.h 357 B

123456789101112131415161718
  1. #ifndef SESSION_COMMON_H
  2. #define SESSION_COMMON_H
  3. #include <functional>
  4. #include <string>
  5. typedef std::function<void(const std::string &)> StringFunc;
  6. typedef std::function<void(void)> notifyFunc;
  7. struct DispatchSettings {
  8. StringFunc server_line;
  9. StringFunc server_prompt;
  10. StringFunc client_input;
  11. bool show_client;
  12. bool talk_direct;
  13. };
  14. #endif