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 #if defined(FLETCH_TARGET_OS_LINUX) | 5 #if defined(FLETCH_TARGET_OS_LINUX) |
6 | 6 |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 #include <string.h> | 9 #include <string.h> |
10 | 10 |
11 #include "include/dart_api.h" | 11 #include "include/dart_api.h" |
12 #include "include/dart_native_api.h" | 12 #include "include/dart_native_api.h" |
13 | 13 |
14 #include "power_management_extension.h" | 14 #include "power_management_extension.h" |
15 | 15 |
16 // Dummy implementation for Linux. | 16 // Dummy implementation for Linux. |
17 int64_t HandleDisableSleep(const char* reason) { | 17 int64_t HandleDisableSleep(const char* reason) { |
18 // Currently not implemented on Linux. | 18 // Currently not implemented on Linux. |
19 return 0; | 19 return 0; |
20 } | 20 } |
21 | 21 |
22 // Dummy implementation for Linux. | 22 // Dummy implementation for Linux. |
23 void HandleEnableSleep(int64_t disable_id) { | 23 void HandleEnableSleep(int64_t disable_id) { |
24 // Currently not implemented on Linux. | 24 // Currently not implemented on Linux. |
25 } | 25 } |
26 | 26 |
27 #endif // FLETCH_TARGET_OS_LINUX | 27 #endif // FLETCH_TARGET_OS_LINUX |
OLD | NEW |