blob: 4dc76780839a53c6931178cb51256141bbc5ca4f [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
20 std::string SwapEnable(uint32_t size, bool change_now,
21 DBus::Error* error) const;
22 std::string SwapDisable(bool change_now, DBus::Error* error) const;
23 std::string SwapStartStop(bool on, DBus::Error* error) const;
24 std::string SwapStatus(DBus::Error* error) const;
Luigi Semenzatoe8b0cda2017-03-20 10:37:53 -070025 std::string SwapSetMargin(uint32_t size, DBus::Error* error) const;
Mike Frysinger57538c02016-10-06 23:01:33 -040026
27 private:
28 DISALLOW_COPY_AND_ASSIGN(SwapTool);
29};
30
31} // namespace debugd
32
33#endif // DEBUGD_SRC_SWAP_TOOL_H_