source: trunk/debathena/third/schroot/sbuild/sbuild-chroot-plain.h @ 24167

Revision 24167, 2.0 KB checked in by broder, 15 years ago (diff)
Import schroot upstream into subversion.
Line 
1/* Copyright © 2005-2007  Roger Leigh <rleigh@debian.org>
2 *
3 * schroot is free software: you can redistribute it and/or modify it
4 * under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 3 of the License, or
6 * (at your option) any later version.
7 *
8 * schroot is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 * General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program.  If not, see
15 * <http://www.gnu.org/licenses/>.
16 *
17 *********************************************************************/
18
19#ifndef SBUILD_CHROOT_PLAIN_H
20#define SBUILD_CHROOT_PLAIN_H
21
22#include <sbuild/sbuild-chroot-directory-base.h>
23
24namespace sbuild
25{
26
27  /**
28   * A chroot located in the filesystem (scripts disabled).
29   *
30   * This doesn't run any setup scripts and doesn't provide any
31   * session support.  If you need any of these functions, the
32   * directory chroot type is more suited to your needs.
33   */
34  class chroot_plain : public chroot_directory_base
35  {
36  protected:
37    /// The constructor.
38    chroot_plain ();
39
40    friend class chroot;
41
42  public:
43    /// The destructor.
44    virtual ~chroot_plain ();
45
46    virtual chroot::ptr
47    clone () const;
48
49    virtual chroot::ptr
50    clone_session (std::string const& session_id,
51                   std::string const& user,
52                   bool               root) const;
53
54    virtual chroot::ptr
55    clone_source () const;
56
57    virtual std::string
58    get_path () const;
59
60    virtual std::string const&
61    get_chroot_type () const;
62
63    virtual session_flags
64    get_session_flags (chroot const& chroot) const;
65
66  protected:
67    virtual void
68    setup_lock (chroot::setup_type type,
69                bool               lock,
70                int                status);
71  };
72
73}
74
75#endif /* SBUILD_CHROOT_PLAIN_H */
76
77/*
78 * Local Variables:
79 * mode:C++
80 * End:
81 */
Note: See TracBrowser for help on using the repository browser.