OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 #include <stdio.h> | 5 #include <stdio.h> |
6 #include <pthread.h> | 6 #include <pthread.h> |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 | 8 |
9 #include "include/fletch_api.h" | 9 #include "include/fletch_api.h" |
10 #include "include/service_api.h" | 10 #include "include/service_api.h" |
11 #include "cc/simple_todo.h" | 11 #include "cc/simple_todo.h" |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 int main(int argc, char** argv) { | 172 int main(int argc, char** argv) { |
173 if (argc < 2) { | 173 if (argc < 2) { |
174 printf("Usage: %s <snapshot file>\n", argv[0]); | 174 printf("Usage: %s <snapshot file>\n", argv[0]); |
175 return EC_OK; | 175 return EC_OK; |
176 } | 176 } |
177 | 177 |
178 ServiceApiSetup(); | 178 ServiceApiSetup(); |
179 StartVmThread(argv[1]); | 179 StartVmThread(argv[1]); |
180 return InteractWithService(); | 180 return InteractWithService(); |
181 } | 181 } |
OLD | NEW |