Mike Frysinger | 57538c0 | 2016-10-06 23:01:33 -0400 | [diff] [blame] | 1 | // Copyright 2016 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef DEBUGD_SRC_SWAP_TOOL_H_ |
| 6 | #define DEBUGD_SRC_SWAP_TOOL_H_ |
| 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | #include <base/macros.h> |
Mike Frysinger | 57538c0 | 2016-10-06 23:01:33 -0400 | [diff] [blame] | 11 | |
| 12 | namespace debugd { |
| 13 | |
| 14 | class SwapTool { |
| 15 | public: |
| 16 | SwapTool() = default; |
| 17 | ~SwapTool() = default; |
| 18 | |
Luigi Semenzato | 3421c41 | 2017-10-24 14:56:26 -0700 | [diff] [blame] | 19 | std::string SwapEnable(int32_t size, bool change_now) const; |
Eric Caruso | c93a15c | 2017-04-24 16:15:12 -0700 | [diff] [blame] | 20 | std::string SwapDisable(bool change_now) const; |
| 21 | std::string SwapStartStop(bool on) const; |
| 22 | std::string SwapStatus() const; |
Luigi Semenzato | 1caa11f | 2017-04-25 12:49:46 -0700 | [diff] [blame] | 23 | std::string SwapSetParameter(const std::string& parameter_name, |
Luigi Semenzato | 3421c41 | 2017-10-24 14:56:26 -0700 | [diff] [blame] | 24 | int32_t parameter_value) const; |
Mike Frysinger | 57538c0 | 2016-10-06 23:01:33 -0400 | [diff] [blame] | 25 | |
| 26 | private: |
| 27 | DISALLOW_COPY_AND_ASSIGN(SwapTool); |
| 28 | }; |
| 29 | |
| 30 | } // namespace debugd |
| 31 | |
| 32 | #endif // DEBUGD_SRC_SWAP_TOOL_H_ |