summaryrefslogtreecommitdiff
path: root/msg.proto
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-05-18 11:49:28 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-05-18 11:49:28 -0400
commit0a46a3e35bd2a960e66345de83877b4bc3144c48 (patch)
treeff519209cd2a89bb7f599bc41b0af6ada92709d9 /msg.proto
parent360c50b52eb886007659a93cc9437adfb5e94ca3 (diff)
First pass at setTimeout
Diffstat (limited to 'msg.proto')
-rw-r--r--msg.proto13
1 files changed, 13 insertions, 0 deletions
diff --git a/msg.proto b/msg.proto
index 181dcc551..1ab78b690 100644
--- a/msg.proto
+++ b/msg.proto
@@ -10,6 +10,8 @@ message Msg {
SourceCodeFetchResMsg source_code_fetch_res = 12;
SourceCodeCacheMsg source_code_cache = 13;
ExitMsg exit = 14;
+ TimerStartMsg timer_start = 15;
+ TimerReadyMsg timer_ready = 16;
}
}
@@ -33,3 +35,14 @@ message SourceCodeCacheMsg {
}
message ExitMsg { int32 code = 1; }
+
+message TimerStartMsg {
+ int32 id = 1;
+ bool interval = 2;
+ int32 duration = 3; // In milliseconds.
+}
+
+message TimerReadyMsg {
+ int32 id = 1;
+ bool done = 2;
+}