sbuild
1.6.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
sbuild
sbuild-chroot-facet-union.h
1
/* Copyright © 2008-2009 Jan-Marek Glogowski <glogow@fbihome.de>
2
* Copyright © 2005-2009 Roger Leigh <rleigh@debian.org>
3
*
4
* schroot is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
8
*
9
* schroot is distributed in the hope that it will be useful, but
10
* WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see
16
* <http://www.gnu.org/licenses/>.
17
*
18
*********************************************************************/
19
20
#ifndef SBUILD_CHROOT_FACET_UNION_H
21
#define SBUILD_CHROOT_FACET_UNION_H
22
23
#include <sbuild/sbuild-chroot-facet.h>
24
25
namespace
sbuild
26
{
27
37
class
chroot_facet_union
:
public
chroot_facet
38
{
39
public
:
41
enum
error_code
42
{
43
UNION_TYPE_UNKNOWN
,
44
UNION_OVERLAY_ABS
,
45
UNION_UNDERLAY_ABS
46
};
47
49
typedef
custom_error<error_code>
error
;
50
52
typedef
std::shared_ptr<chroot_facet_union>
ptr
;
53
55
typedef
std::shared_ptr<const chroot_facet_union>
const_ptr
;
56
57
private
:
59
chroot_facet_union
();
60
61
public
:
63
virtual
~chroot_facet_union
();
64
70
static
ptr
71
create
();
72
73
virtual
chroot_facet::ptr
74
clone
()
const
;
75
76
std::string
const
&
77
get_name
()
const
;
78
84
void
85
clone_source_setup
(
chroot::ptr
&
clone
)
const
;
86
92
bool
93
get_union_configured
()
const
;
94
101
virtual
std::string
const
&
102
get_union_type
()
const
;
103
111
virtual
void
112
set_union_type
(std::string
const
&
union_type
);
113
120
virtual
std::string
const
&
121
get_union_mount_options
()
const
;
122
135
virtual
void
136
set_union_mount_options
(std::string
const
&
union_mount_options
);
137
143
virtual
std::string
const
&
144
get_union_overlay_directory
()
const
;
145
151
virtual
void
152
set_union_overlay_directory
(std::string
const
& directory);
153
159
virtual
std::string
const
&
160
get_union_underlay_directory
()
const
;
161
167
virtual
void
168
set_union_underlay_directory
(std::string
const
& directory);
169
170
virtual
void
171
setup_env
(
chroot
const
&
chroot
,
172
environment
& env)
const
;
173
174
virtual
chroot::session_flags
175
get_session_flags
(
chroot
const
&
chroot
)
const
;
176
177
virtual
void
178
get_details
(
chroot
const
&
chroot
,
179
format_detail
& detail)
const
;
180
181
virtual
void
182
get_keyfile
(
chroot
const
&
chroot
,
183
keyfile
&
keyfile
)
const
;
184
185
virtual
void
186
set_keyfile
(
chroot
&
chroot
,
187
keyfile
const
&
keyfile
,
188
string_list
& used_keys);
189
190
private
:
192
std::string
union_type
;
194
std::string
union_mount_options
;
196
std::string
union_overlay_directory
;
198
std::string
union_underlay_directory
;
199
};
200
201
}
202
203
#endif
/* SBUILD_CHROOT_FACET_UNION_H */
204
205
/*
206
* Local Variables:
207
* mode:C++
208
* End:
209
*/
Generated on Fri Jun 29 2012 13:39:02 for sbuild by
1.8.1.1