blob: 1a22fffc3c03c527ee127d1d1a565b261fd2812c [file] [log] [blame]
Mike Frysinger57538c02016-10-06 23:01:33 -04001// 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>
11#include <dbus-c++/dbus.h>
12
13namespace debugd {
14
15class SwapTool {
16 public:
17 SwapTool() = default;
18 ~SwapTool() = default;
19
Eric Carusoc93a15c2017-04-24 16:15:12 -070020 std::string SwapEnable(uint32_t size, bool change_now) const;
21 std::string SwapDisable(bool change_now) const;
22 std::string SwapStartStop(bool on) const;
23 std::string SwapStatus() const;
24 std::string SwapSetMargin(uint32_t size) const;
Mike Frysinger57538c02016-10-06 23:01:33 -040025
26 private:
27 DISALLOW_COPY_AND_ASSIGN(SwapTool);
28};
29
30} // namespace debugd
31
32#endif // DEBUGD_SRC_SWAP_TOOL_H_