blob: 2f6543ac9d9fae2f0f69ca6567721033f478831e [file] [log] [blame]
Luis Hector Chavezedec56e2017-09-19 15:43:53 -07001// Copyright 2017 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 LIBCONTAINER_CONTAINER_H_
6#define LIBCONTAINER_CONTAINER_H_
7
8#include <base/files/file_path.h>
9#include <base/macros.h>
10#include <base/strings/string_piece.h>
11#include <brillo/brillo_export.h>
12
13#include "libcontainer/libcontainer.h"
14
15namespace libcontainer {
16
17class BRILLO_EXPORT Container {
18 public:
Luis Hector Chavezefdd04c2017-11-09 16:58:03 -080019 Container(base::StringPiece name, const base::FilePath& rundir);
Qijiang Fan6bc59e12020-11-11 02:51:06 +090020 Container(const Container&) = delete;
21 Container& operator=(const Container&) = delete;
22
Luis Hector Chavezefdd04c2017-11-09 16:58:03 -080023 ~Container();
Luis Hector Chavezedec56e2017-09-19 15:43:53 -070024
Luis Hector Chavezefdd04c2017-11-09 16:58:03 -080025 container* get() const { return container_; }
Luis Hector Chavezedec56e2017-09-19 15:43:53 -070026
27 private:
28 container* const container_;
Luis Hector Chavezedec56e2017-09-19 15:43:53 -070029};
30
31} // namespace libcontainer
32
33#endif // LIBCONTAINER_CONTAINER_H_