diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2018-11-30 18:15:57 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2018-11-30 18:15:57 +0100 |
| commit | 1ba42445a5a97e1b09fc9671602594d3e3695063 (patch) | |
| tree | 320cc08bb94620a7978ca11a948ecca40b09a6e4 /src/message.hpp | |
| parent | 7d9300894ad1a6e2954332188fe0045e32bc459a (diff) | |
| download | wanda-1ba42445a5a97e1b09fc9671602594d3e3695063.tar.xz wanda-1ba42445a5a97e1b09fc9671602594d3e3695063.zip | |
core: extract message constants
Diffstat (limited to 'src/message.hpp')
| -rw-r--r-- | src/message.hpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/message.hpp b/src/message.hpp index f34d19c..a834b15 100644 --- a/src/message.hpp +++ b/src/message.hpp @@ -9,6 +9,16 @@ namespace wanda { +inline namespace v1 +{ +auto constexpr message_argument_hello = "1.0.0"; +} + +auto constexpr message_source_controller = "C"; +auto constexpr message_source_daemon = "D"; + +auto constexpr message_command_hello = "HELLO"; + struct message { explicit operator std::string() const; @@ -20,8 +30,8 @@ struct message std::optional<std::string> argument; }; -std::istream & operator>>(std::istream & in, message & message); -std::ostream & operator<<(std::ostream & out, message const & message); +std::istream &operator>>(std::istream &in, message &message); +std::ostream &operator<<(std::ostream &out, message const &message); } // namespace wanda |
