summaryrefslogtreecommitdiff
path: root/lib/gras_impl/messages.hpp
diff options
context:
space:
mode:
authorJosh Blum2013-02-13 01:18:31 -0800
committerJosh Blum2013-02-17 20:53:28 -0600
commit67e0e06f155f4a2eeecafabd4c63b840b41b0709 (patch)
tree126978cbb26297286153c492ff2f5e9d6c5fe8f8 /lib/gras_impl/messages.hpp
parent9191fbce9f4d161e4f871231469ef009c86f177f (diff)
downloadsandhi-67e0e06f155f4a2eeecafabd4c63b840b41b0709.tar.gz
sandhi-67e0e06f155f4a2eeecafabd4c63b840b41b0709.tar.bz2
sandhi-67e0e06f155f4a2eeecafabd4c63b840b41b0709.zip
gras: work on stats messages and xml formatting
Diffstat (limited to 'lib/gras_impl/messages.hpp')
-rw-r--r--lib/gras_impl/messages.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/gras_impl/messages.hpp b/lib/gras_impl/messages.hpp
index 57f308b..386cd0a 100644
--- a/lib/gras_impl/messages.hpp
+++ b/lib/gras_impl/messages.hpp
@@ -8,6 +8,7 @@
#include <gras/tags.hpp>
#include <gras/sbuffer.hpp>
#include <gras_impl/token.hpp>
+#include <gras_impl/stats.hpp>
namespace gras
{
@@ -128,6 +129,13 @@ struct SelfKickMessage
//empty
};
+struct GetStatsMessage
+{
+ std::string block_id;
+ BlockStats stats;
+ time_ticks_t stats_time;
+};
+
} //namespace gras
#include <Theron/Register.h>
@@ -157,5 +165,6 @@ THERON_DECLARE_REGISTERED_MESSAGE(gras::OutputAllocMessage);
THERON_DECLARE_REGISTERED_MESSAGE(gras::OutputUpdateMessage);
THERON_DECLARE_REGISTERED_MESSAGE(gras::SelfKickMessage);
+THERON_DECLARE_REGISTERED_MESSAGE(gras::GetStatsMessage);
#endif /*INCLUDED_LIBGRAS_IMPL_MESSAGES_HPP*/