| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef POWER_MANAGER_UTIL_H_ | 5 #ifndef POWER_MANAGER_UTIL_H_ |
| 6 #define POWER_MANAGER_UTIL_H_ | 6 #define POWER_MANAGER_UTIL_H_ |
| 7 | 7 |
| 8 namespace power_manager { | 8 namespace power_manager { |
| 9 | 9 |
| 10 namespace util { | 10 namespace util { |
| 11 | 11 |
| 12 // interface names | 12 // interface names |
| 13 extern const char* kLowerPowerManagerInterface; | 13 extern const char* kLowerPowerManagerInterface; |
| 14 extern const char* kPowerManagerInterface; | |
| 15 | 14 |
| 16 // powerd -> powerm constants | 15 // powerd -> powerm constants |
| 17 extern const char* kRequestCleanShutdown; | 16 extern const char* kRequestCleanShutdown; |
| 18 extern const char* kSuspendSignal; | 17 extern const char* kSuspendSignal; |
| 19 extern const char* kShutdownSignal; | 18 extern const char* kShutdownSignal; |
| 20 | 19 |
| 21 // powerm -> powerd constants | 20 // powerm -> powerd constants |
| 22 extern const char* kLidClosed; | 21 extern const char* kLidClosed; |
| 23 extern const char* kLidOpened; | 22 extern const char* kLidOpened; |
| 24 extern const char* kPowerButtonDown; | 23 extern const char* kPowerButtonDown; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 37 void SendSignalToPowerM(const char* signal); | 36 void SendSignalToPowerM(const char* signal); |
| 38 | 37 |
| 39 // Send a message |signal| to the unprivileged power daemon. | 38 // Send a message |signal| to the unprivileged power daemon. |
| 40 void SendSignalToPowerD(const char* signal); | 39 void SendSignalToPowerD(const char* signal); |
| 41 | 40 |
| 42 } // namespace util | 41 } // namespace util |
| 43 | 42 |
| 44 } // namespace power_manager | 43 } // namespace power_manager |
| 45 | 44 |
| 46 #endif // POWER_MANAGER_UTIL_H_ | 45 #endif // POWER_MANAGER_UTIL_H_ |
| OLD | NEW |