~ubuntu-branches/ubuntu/trusty/schroot/trusty

« back to all changes in this revision

Viewing changes to doc/sbuild/html/sbuild-chroot-source_8h_source.html

  • Committer: Bazaar Package Importer
  • Author(s): Roger Leigh
  • Date: 2009-11-07 10:46:54 UTC
  • mfrom: (1.1.20 upstream) (2.1.6 experimental)
  • Revision ID: james.westby@ubuntu.com-20091107104654-kk1fp1icv8dzfyfi
* New upstream development release.
* schroot:
  - Return success when ending a session and the operation
    succeeded (Closes: #554907).

Show diffs side-by-side

added added

removed removed

Lines of Context:
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-source.h Source File</title>
4
 
<link href="tabs.css" rel="stylesheet" type="text/css">
5
 
<link href="doxygen.css" rel="stylesheet" type="text/css">
6
 
</head><body>
7
 
<!-- Generated by Doxygen 1.5.9 -->
8
 
<div class="navigation" id="top">
9
 
  <div class="tabs">
10
 
    <ul>
11
 
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
12
 
      <li><a href="pages.html"><span>Related&nbsp;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>
17
 
    </ul>
18
 
  </div>
19
 
  <div class="tabs">
20
 
    <ul>
21
 
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
22
 
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
23
 
    </ul>
24
 
  </div>
25
 
  <div class="navpath"><a class="el" href="dir_5769d7dd62c6719d79ec5ec7998dae58.html">sbuild</a>
26
 
  </div>
27
 
</div>
28
 
<div class="contents">
29
 
<h1>sbuild-chroot-source.h</h1><a href="sbuild-chroot-source_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 &lt;rleigh@debian.org&gt;</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"> * &lt;http://www.gnu.org/licenses/&gt;.</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_SOURCE_H</span>
48
 
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define SBUILD_CHROOT_SOURCE_H</span>
49
 
<a name="l00021"></a>00021 <span class="preprocessor"></span>
50
 
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;<a class="code" href="sbuild-chroot_8h.html">sbuild/sbuild-chroot.h</a>&gt;</span>
51
 
<a name="l00023"></a>00023 
52
 
<a name="l00024"></a>00024 <span class="keyword">namespace </span>sbuild
53
 
<a name="l00025"></a>00025 {
54
 
<a name="l00026"></a>00026 
55
 
<a name="l00042"></a><a class="code" href="classsbuild_1_1chroot__source.html">00042</a>   <span class="keyword">class </span><a class="code" href="classsbuild_1_1chroot__source.html" title="A chroot may offer a &amp;quot;source&amp;quot; chroot in addition to its normal &amp;quot;session&amp;quot;...">chroot_source</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>
56
 
<a name="l00043"></a>00043   {
57
 
<a name="l00044"></a>00044   <span class="keyword">protected</span>:
58
 
<a name="l00046"></a>00046     <a class="code" href="classsbuild_1_1chroot__source.html#285f0a011eaf2f092721427f72ebae73" title="The constructor.">chroot_source</a> ();
59
 
<a name="l00047"></a>00047 
60
 
<a name="l00048"></a><a class="code" href="classsbuild_1_1chroot__source.html#d93ec14845f07d687e98a51953056cd6">00048</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>;
61
 
<a name="l00049"></a>00049 
62
 
<a name="l00050"></a>00050   <span class="keyword">public</span>:
63
 
<a name="l00052"></a>00052     <span class="keyword">virtual</span> <a class="code" href="classsbuild_1_1chroot__source.html#e462f6a9990327ddd3231ed2fbcd6c77" title="The destructor.">~chroot_source</a> ();
64
 
<a name="l00053"></a>00053 
65
 
<a name="l00059"></a>00059     <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>
66
 
<a name="l00060"></a>00060     <a class="code" href="classsbuild_1_1chroot__source.html#5f0540ddf7292f344f1a82afa8e72626" title="Create a source chroot.">clone_source</a> () <span class="keyword">const</span> = 0;
67
 
<a name="l00061"></a>00061 
68
 
<a name="l00062"></a>00062   <span class="keyword">protected</span>:
69
 
<a name="l00068"></a>00068     <span class="keywordtype">void</span>
70
 
<a name="l00069"></a>00069     <a class="code" href="classsbuild_1_1chroot__source.html#1b381b455b1d6ed6760545785ce88111" title="Set the defaults in the cloned source chroot.">clone_source_setup</a> (<a class="code" href="classsbuild_1_1chroot.html#ef7d5b607d1a0a4a7ebe1d40e2ec9c3a" title="A shared_ptr to a chroot object.">chroot::ptr</a>&amp; <a class="code" href="classsbuild_1_1chroot.html#cd6d20ce80856dac4c556eea25b9e862" title="Copy the chroot.">clone</a>) <span class="keyword">const</span>;
71
 
<a name="l00070"></a>00070 
72
 
<a name="l00071"></a>00071   <span class="keyword">public</span>:
73
 
<a name="l00077"></a>00077     <span class="keyword">virtual</span> <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a> <span class="keyword">const</span>&amp;
74
 
<a name="l00078"></a>00078     <a class="code" href="classsbuild_1_1chroot__source.html#2310d3f9b9d11769b55f0f6271f5c68c" title="Get the users allowed to access the source chroot.">get_source_users</a> () <span class="keyword">const</span>;
75
 
<a name="l00079"></a>00079 
76
 
<a name="l00085"></a>00085     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
77
 
<a name="l00086"></a>00086     <a class="code" href="classsbuild_1_1chroot__source.html#f8c1364cefddc107c545776f27748234" title="Set the users allowed to access the source chroot.">set_source_users</a> (<a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a> <span class="keyword">const</span>&amp; <a class="code" href="classsbuild_1_1chroot.html#4bbd7af456b09845b6bf1bd3eefafc42" title="Users allowed to access the chroot.">users</a>);
78
 
<a name="l00087"></a>00087 
79
 
<a name="l00093"></a>00093     <span class="keyword">virtual</span> <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a> <span class="keyword">const</span>&amp;
80
 
<a name="l00094"></a>00094     <a class="code" href="classsbuild_1_1chroot__source.html#146b08e52c69782722eb1594757e51c2" title="Get the groups allowed to access the source chroot.">get_source_groups</a> () <span class="keyword">const</span>;
81
 
<a name="l00095"></a>00095 
82
 
<a name="l00101"></a>00101     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
83
 
<a name="l00102"></a>00102     <a class="code" href="classsbuild_1_1chroot__source.html#c83b643fa1b48ea5f8655eb52feb20a6" title="Set the groups allowed to access the source chroot.">set_source_groups</a> (<a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a> <span class="keyword">const</span>&amp; <a class="code" href="classsbuild_1_1chroot.html#397c5fc1852eb0db5be420e0a1d4c7f4" title="Groups allowed to access the chroot.">groups</a>);
84
 
<a name="l00103"></a>00103 
85
 
<a name="l00111"></a>00111     <span class="keyword">virtual</span> <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a> <span class="keyword">const</span>&amp;
86
 
<a name="l00112"></a>00112     <a class="code" href="classsbuild_1_1chroot__source.html#281ec24a6adc4e4a2a133cc5f8f8baf0" title="Get the users allowed to access the source chroot as root.">get_source_root_users</a> () <span class="keyword">const</span>;
87
 
<a name="l00113"></a>00113 
88
 
<a name="l00121"></a>00121     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
89
 
<a name="l00122"></a>00122     <a class="code" href="classsbuild_1_1chroot__source.html#b0946dd16f5a3042a19ebf0773f01182" title="Set the users allowed to access the source chroot as root.">set_source_root_users</a> (<a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a> <span class="keyword">const</span>&amp; <a class="code" href="classsbuild_1_1chroot.html#4bbd7af456b09845b6bf1bd3eefafc42" title="Users allowed to access the chroot.">users</a>);
90
 
<a name="l00123"></a>00123 
91
 
<a name="l00131"></a>00131     <span class="keyword">virtual</span> <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a> <span class="keyword">const</span>&amp;
92
 
<a name="l00132"></a>00132     <a class="code" href="classsbuild_1_1chroot__source.html#0d2aced58522ca1ce204e16e4676725a" title="Get the groups allowed to access the source chroot as root.">get_source_root_groups</a> () <span class="keyword">const</span>;
93
 
<a name="l00133"></a>00133 
94
 
<a name="l00141"></a>00141     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
95
 
<a name="l00142"></a>00142     <a class="code" href="classsbuild_1_1chroot__source.html#c1468cb6818391f02e0586ab1f3fa3b7" title="Set the groups allowed to access the source chroot as root.">set_source_root_groups</a> (<a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a> <span class="keyword">const</span>&amp; <a class="code" href="classsbuild_1_1chroot.html#397c5fc1852eb0db5be420e0a1d4c7f4" title="Groups allowed to access the chroot.">groups</a>);
96
 
<a name="l00143"></a>00143 
97
 
<a name="l00144"></a>00144     <span class="keywordtype">void</span>
98
 
<a name="l00145"></a>00145     <a class="code" href="classsbuild_1_1chroot__source.html#c8594464386d3a5480ebefe0b0169d63" title="Set environment.">setup_env</a> (<a class="code" href="classsbuild_1_1environment.html" title="Container of environment variables.">environment</a>&amp; env);
99
 
<a name="l00146"></a>00146 
100
 
<a name="l00147"></a>00147   <span class="keyword">protected</span>:
101
 
<a name="l00148"></a>00148     <span class="keyword">virtual</span> <a class="code" href="classsbuild_1_1chroot.html#ef89631e62590a5864a644e1d6c19e8e" title="Chroot session properties.">session_flags</a>
102
 
<a name="l00149"></a>00149     <a class="code" href="classsbuild_1_1chroot__source.html#482ab96e8da212083562ab5b74abbe40" title="Get the session flags of the chroot.">get_session_flags</a> () <span class="keyword">const</span>;
103
 
<a name="l00150"></a>00150 
104
 
<a name="l00151"></a>00151     <span class="keyword">virtual</span> <span class="keywordtype">void</span>
105
 
<a name="l00152"></a>00152     <a class="code" href="classsbuild_1_1chroot__source.html#62aefa5c03f8e1101e28e7c81cfbdbfc" 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>&amp; detail) <span class="keyword">const</span>;
106
 
<a name="l00153"></a>00153 
107
 
<a name="l00154"></a>00154     <span class="keywordtype">void</span>
108
 
<a name="l00155"></a>00155     <a class="code" href="classsbuild_1_1chroot__source.html#3e916e6bd894f37b54731d359fa23eec" 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>&amp; <a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a>) <span class="keyword">const</span>;
109
 
<a name="l00156"></a>00156 
110
 
<a name="l00157"></a>00157     <span class="keywordtype">void</span>
111
 
<a name="l00158"></a>00158     <a class="code" href="classsbuild_1_1chroot__source.html#df9aa7fc114a237e9883511a216b1109" 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>&amp; <a class="code" href="classsbuild_1_1basic__keyfile.html" title="Configuration file parser.">keyfile</a>,
112
 
<a name="l00159"></a>00159                  <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a>&amp;   used_keys);
113
 
<a name="l00160"></a>00160 
114
 
<a name="l00161"></a>00161   <span class="keyword">private</span>:
115
 
<a name="l00163"></a><a class="code" href="classsbuild_1_1chroot__source.html#8343b01794fd4e47223efe7822b80d73">00163</a>     <span class="keywordtype">bool</span>          <a class="code" href="classsbuild_1_1chroot__source.html#8343b01794fd4e47223efe7822b80d73" title="Is the chroot source or clone?">is_source</a>;
116
 
<a name="l00165"></a><a class="code" href="classsbuild_1_1chroot__source.html#861d4047e16c75f51076cb8c626ccafc">00165</a>     <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a>   <a class="code" href="classsbuild_1_1chroot__source.html#861d4047e16c75f51076cb8c626ccafc" title="Users allowed to access the source chroot.">source_users</a>;
117
 
<a name="l00167"></a><a class="code" href="classsbuild_1_1chroot__source.html#118101051f91d4a84a62fb158de1fc3d">00167</a>     <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a>   <a class="code" href="classsbuild_1_1chroot__source.html#118101051f91d4a84a62fb158de1fc3d" title="Groups allowed to access the source chroot.">source_groups</a>;
118
 
<a name="l00169"></a><a class="code" href="classsbuild_1_1chroot__source.html#c48a7d34520f5734d8cb3b3bb2791531">00169</a>     <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a>   <a class="code" href="classsbuild_1_1chroot__source.html#c48a7d34520f5734d8cb3b3bb2791531" title="Users allowed to access the source chroot as root.">source_root_users</a>;
119
 
<a name="l00171"></a><a class="code" href="classsbuild_1_1chroot__source.html#70434624c1fbf84136a61e16d796ca7b">00171</a>     <a class="code" href="namespacesbuild.html#4268c3202ab4b20cbebf347a6d69393f" title="A string vector.">string_list</a>   <a class="code" href="classsbuild_1_1chroot__source.html#70434624c1fbf84136a61e16d796ca7b" title="Groups allowed to access the source chroot as root.">source_root_groups</a>;
120
 
<a name="l00172"></a>00172   };
121
 
<a name="l00173"></a>00173 
122
 
<a name="l00174"></a>00174 }
123
 
<a name="l00175"></a>00175 
124
 
<a name="l00176"></a>00176 <span class="preprocessor">#endif </span><span class="comment">/* SBUILD_CHROOT_SOURCE_H */</span>
125
 
<a name="l00177"></a>00177 
126
 
<a name="l00178"></a>00178 <span class="comment">/*</span>
127
 
<a name="l00179"></a>00179 <span class="comment"> * Local Variables:</span>
128
 
<a name="l00180"></a>00180 <span class="comment"> * mode:C++</span>
129
 
<a name="l00181"></a>00181 <span class="comment"> * End:</span>
130
 
<a name="l00182"></a>00182 <span class="comment"> */</span>
131
 
</pre></div></div>
132
 
<hr size="1"><address style="text-align: right;"><small>Generated on Sun May 17 18:38:55 2009 for sbuild by&nbsp;
133
 
<a href="http://www.doxygen.org/index.html">
134
 
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
135
 
</body>
136
 
</html>