1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
<title>sbuild: sbuild/sbuild-chroot-loopback.h Source File</title>
4
<link href="tabs.css" rel="stylesheet" type="text/css">
5
<link href="doxygen.css" rel="stylesheet" type="text/css">
7
<!-- Generated by Doxygen 1.5.9 -->
8
<div class="navigation" id="top">
11
<li><a href="index.html"><span>Main Page</span></a></li>
12
<li><a href="pages.html"><span>Related Pages</span></a></li>
13
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
14
<li><a href="annotated.html"><span>Classes</span></a></li>
15
<li class="current"><a href="files.html"><span>Files</span></a></li>
16
<li><a href="dirs.html"><span>Directories</span></a></li>
21
<li><a href="files.html"><span>File List</span></a></li>
22
<li><a href="globals.html"><span>File Members</span></a></li>
25
<div class="navpath"><a class="el" href="dir_5769d7dd62c6719d79ec5ec7998dae58.html">sbuild</a>
28
<div class="contents">
29
<h1>sbuild-chroot-loopback.h</h1><a href="sbuild-chroot-loopback_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* Copyright © 2005-2008 Roger Leigh <rleigh@debian.org></span>
30
<a name="l00002"></a>00002 <span class="comment"> *</span>
31
<a name="l00003"></a>00003 <span class="comment"> * schroot is free software: you can redistribute it and/or modify it</span>
32
<a name="l00004"></a>00004 <span class="comment"> * under the terms of the GNU General Public License as published by</span>
33
<a name="l00005"></a>00005 <span class="comment"> * the Free Software Foundation, either version 3 of the License, or</span>
34
<a name="l00006"></a>00006 <span class="comment"> * (at your option) any later version.</span>
35
<a name="l00007"></a>00007 <span class="comment"> *</span>
36
<a name="l00008"></a>00008 <span class="comment"> * schroot is distributed in the hope that it will be useful, but</span>
37
<a name="l00009"></a>00009 <span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span>
38
<a name="l00010"></a>00010 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
39
<a name="l00011"></a>00011 <span class="comment"> * General Public License for more details.</span>
40
<a name="l00012"></a>00012 <span class="comment"> *</span>
41
<a name="l00013"></a>00013 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
42
<a name="l00014"></a>00014 <span class="comment"> * along with this program. If not, see</span>
43
<a name="l00015"></a>00015 <span class="comment"> * <http://www.gnu.org/licenses/>.</span>
44
<a name="l00016"></a>00016 <span class="comment"> *</span>
45
<a name="l00017"></a>00017 <span class="comment"> *********************************************************************/</span>
46
<a name="l00018"></a>00018
47
<a name="l00019"></a>00019 <span class="preprocessor">#ifndef SBUILD_CHROOT_LOOPBACK_H</span>
48
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define SBUILD_CHROOT_LOOPBACK_H</span>
49
<a name="l00021"></a>00021 <span class="preprocessor"></span>
50
<a name="l00022"></a>00022 <span class="preprocessor">#include <<a class="code" href="sbuild-chroot_8h.html">sbuild/sbuild-chroot.h</a>></span>
51
<a name="l00023"></a>00023 <span class="preprocessor">#include <<a class="code" href="sbuild-chroot-mountable_8h.html">sbuild/sbuild-chroot-mountable.h</a>></span>
52
<a name="l00024"></a>00024
53
<a name="l00025"></a>00025 <span class="keyword">namespace </span>sbuild
54
<a name="l00026"></a>00026 {
55
<a name="l00027"></a>00027
56
<a name="l00033"></a><a class="code" href="classsbuild_1_1chroot__loopback.html">00033</a> <span class="keyword">class </span><a class="code" href="classsbuild_1_1chroot__loopback.html" title="A chroot stored in a file for loopback mounting.">chroot_loopback</a> : <span class="keyword">virtual</span> <span class="keyword">public</span> <a class="code" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a>,
57
<a name="l00034"></a>00034 <span class="keyword">public</span> <a class="code" href="classsbuild_1_1chroot__mountable.html" title="A chroot stored on an unmounted block device.">chroot_mountable</a>
58
<a name="l00035"></a>00035 {
59
<a name="l00036"></a>00036 <span class="keyword">protected</span>:
60
<a name="l00038"></a>00038 <a class="code" href="classsbuild_1_1chroot__loopback.html#ac257d8fa5369139c66757d56e1b9874" title="The constructor.">chroot_loopback</a> ();
61
<a name="l00039"></a>00039
62
<a name="l00040"></a><a class="code" href="classsbuild_1_1chroot__loopback.html#d93ec14845f07d687e98a51953056cd6">00040</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classsbuild_1_1chroot.html" title="Common chroot data.">chroot</a>;
63
<a name="l00041"></a>00041
64
<a name="l00042"></a>00042 <span class="keyword">public</span>:
65
<a name="l00044"></a>00044 <span class="keyword">virtual</span> <a class="code" href="classsbuild_1_1chroot__loopback.html#971171d45f997fbc4a3e15948871392c" title="The destructor.">~chroot_loopback</a> ();
66
<a name="l00045"></a>00045
67
<a name="l00046"></a>00046 <span class="keyword">virtual</span> <a class="code" href="classsbuild_1_1chroot.html#ef7d5b607d1a0a4a7ebe1d40e2ec9c3a" title="A shared_ptr to a chroot object.">chroot::ptr</a>
68
<a name="l00047"></a>00047 <a class="code" href="classsbuild_1_1chroot__loopback.html#040aaf3a4dbbd38ca34dc7b38d0669ff" title="Copy the chroot.">clone</a> () <span class="keyword">const</span>;
69
<a name="l00048"></a>00048
70
<a name="l00054"></a>00054 std::string <span class="keyword">const</span>&
71
<a name="l00055"></a>00055 <a class="code" href="classsbuild_1_1chroot__loopback.html#12cb1be49f68c561e4dbf120239dbbcf" title="Get the file containing the chroot.">get_file</a> () <span class="keyword">const</span>;
72
<a name="l00056"></a>00056
73
<a name="l00062"></a>00062 <span class="keywordtype">void</span>
74
<a name="l00063"></a>00063 <a class="code" href="classsbuild_1_1chroot__loopback.html#60f7fb5ad46b906aa793054f5da7104f" title="Set the file containing the chroot.">set_file</a> (std::string <span class="keyword">const</span>& <a class="code" href="classsbuild_1_1chroot__loopback.html#d4117c48d7337b42536604e11475224a" title="The file to use.">file</a>);
75
<a name="l00064"></a>00064
76
<a name="l00065"></a>00065 <span class="keyword">virtual</span> std::string <span class="keyword">const</span>&
77
<a name="l00066"></a>00066 <a class="code" href="classsbuild_1_1chroot__loopback.html#defdb7f031a2e28b644517ac20d84da1" title="Get the mount device of the chroot.">get_mount_device</a> () <span class="keyword">const</span>;
78
<a name="l00067"></a>00067
79
<a name="l00068"></a>00068 std::string <span class="keyword">const</span>&
80
<a name="l00069"></a>00069 <a class="code" href="classsbuild_1_1chroot__loopback.html#2e3828c400b9303862675e3b4a30e1e0" title="Get the type of the chroot.">get_chroot_type</a> () <span class="keyword">const</span>;
81
<a name="l00070"></a>00070
82
<a name="l00071"></a>00071 <span class="keyword">virtual</span> <span class="keywordtype">void</span>
83
<a name="l00072"></a>00072 <a class="code" href="classsbuild_1_1chroot__loopback.html#3a1c672b205a4999e5c37f2ab2fed273" title="Set environment.">setup_env</a> (<a class="code" href="classsbuild_1_1environment.html" title="Container of environment variables.">environment</a>& env);
84
<a name="l00073"></a>00073
85
<a name="l00074"></a>00074 <span class="keyword">virtual</span> <a class="code" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8e" title="Chroot session properties.">session_flags</a>
86
<a name="l00075"></a>00075 <a class="code" href="classsbuild_1_1chroot__loopback.html#af93b6ac96a4e47ef7562e719ef8cfc2" title="Get the session flags of the chroot.">get_session_flags</a> () <span class="keyword">const</span>;
87
<a name="l00076"></a>00076
88
<a name="l00077"></a>00077 <span class="keyword">protected</span>:
89
<a name="l00078"></a>00078 <span class="keyword">virtual</span> <span class="keywordtype">void</span>
90
<a name="l00079"></a>00079 <a class="code" href="classsbuild_1_1chroot__loopback.html#1bfd73a95fd0f721d77a79aa1cda94a7" title="Unlock a chroot during setup.">setup_lock</a> (<a class="code" href="classsbuild_1_1chroot.html#9c7517b01054dee9285cd48cf42073e9" title="Type of setup to perform.">chroot::setup_type</a> type,
91
<a name="l00080"></a>00080 <span class="keywordtype">bool</span> <a class="code" href="classsbuild_1_1lock.html" title="Advisory locking.">lock</a>,
92
<a name="l00081"></a>00081 <span class="keywordtype">int</span> status);
93
<a name="l00082"></a>00082
94
<a name="l00083"></a>00083 <span class="keyword">virtual</span> <span class="keywordtype">void</span>
95
<a name="l00084"></a>00084 <a class="code" href="classsbuild_1_1chroot__loopback.html#72a390e930b87daca204b8e54f18428f" title="Get detailed information about the chroot for output.">get_details</a> (<a class="code" href="classsbuild_1_1format__detail.html" title="Format names and values for output.">format_detail</a>& detail) <span class="keyword">const</span>;
96
<a name="l00085"></a>00085
97
<a name="l00086"></a>00086 <span class="keyword">virtual</span> <span class="keywordtype">void</span>
98
<a name="l00087"></a>00087 <a class="code" href="classsbuild_1_1chroot__loopback.html#f2f32c1eee597149c60bef3f1c11175c" title="Copy the chroot properties into a keyfile.">get_keyfile</a> (<a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a>& <a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a>) <span class="keyword">const</span>;
99
<a name="l00088"></a>00088
100
<a name="l00089"></a>00089 <span class="keyword">virtual</span> <span class="keywordtype">void</span>
101
<a name="l00090"></a>00090 <a class="code" href="classsbuild_1_1chroot__loopback.html#f3d447fd3ca8bb097b35755a39045cce" title="Set the chroot properties from a keyfile.">set_keyfile</a> (<a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a> <span class="keyword">const</span>& <a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a>,
102
<a name="l00091"></a>00091 <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a>& used_keys);
103
<a name="l00092"></a>00092
104
<a name="l00093"></a>00093 <span class="keyword">private</span>:
105
<a name="l00095"></a><a class="code" href="classsbuild_1_1chroot__loopback.html#d4117c48d7337b42536604e11475224a">00095</a> std::string <a class="code" href="classsbuild_1_1chroot__loopback.html#d4117c48d7337b42536604e11475224a" title="The file to use.">file</a>;
106
<a name="l00096"></a>00096 };
107
<a name="l00097"></a>00097
108
<a name="l00098"></a>00098 }
109
<a name="l00099"></a>00099
110
<a name="l00100"></a>00100 <span class="preprocessor">#endif </span><span class="comment">/* SBUILD_CHROOT_LOOPBACK_H */</span>
111
<a name="l00101"></a>00101
112
<a name="l00102"></a>00102 <span class="comment">/*</span>
113
<a name="l00103"></a>00103 <span class="comment"> * Local Variables:</span>
114
<a name="l00104"></a>00104 <span class="comment"> * mode:C++</span>
115
<a name="l00105"></a>00105 <span class="comment"> * End:</span>
116
<a name="l00106"></a>00106 <span class="comment"> */</span>
118
<hr size="1"><address style="text-align: right;"><small>Generated on Sun May 17 18:38:54 2009 for sbuild by
119
<a href="http://www.doxygen.org/index.html">
120
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>