summaryrefslogtreecommitdiff
path: root/lib/gras_impl/messages.hpp
diff options
context:
space:
mode:
authorJosh Blum2013-02-24 14:29:16 -0800
committerJosh Blum2013-02-24 14:29:16 -0800
commit883743bd59f40f9ce1e30bd196de78c2e7646294 (patch)
treef9b0cf4f0a1d3894643a681a54aa21fe55398243 /lib/gras_impl/messages.hpp
parent6841702911d07a2bad86ecd3bfc243b6a688ad2a (diff)
parentdecd0f40714a71c6fb5c4f100e8f51c6ef238b26 (diff)
downloadsandhi-883743bd59f40f9ce1e30bd196de78c2e7646294.tar.gz
sandhi-883743bd59f40f9ce1e30bd196de78c2e7646294.tar.bz2
sandhi-883743bd59f40f9ce1e30bd196de78c2e7646294.zip
Merge branch 'stats'
Conflicts: grextras include/gras/top_block.hpp lib/block_handlers.cpp lib/block_task.cpp lib/element_impl.hpp tests/CMakeLists.txt
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*/