sbuild  1.6.10
sbuild-fdstream.h
1 /* Copyright © 2011 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_FDSTREAM_H
20 #define SBUILD_FDSTREAM_H
21 
22 #include <boost/iostreams/device/file_descriptor.hpp>
23 #include <boost/iostreams/stream.hpp>
24 
25 namespace sbuild
26 {
27 
28  // Stream type.
29  typedef boost::iostreams::stream<boost::iostreams::file_descriptor> fdstream;
30 
31  // Stream type.
32  typedef boost::iostreams::stream<boost::iostreams::file_descriptor_source> fdistream;
33 
34  // Stream type.
35  typedef boost::iostreams::stream<boost::iostreams::file_descriptor_sink> fdostream;
36 
37 }
38 
39 #endif /* SBUILD_FDSTREAM_H */
40 
41 /*
42  * Local Variables:
43  * mode:C++
44  * End:
45  */
Debian source builder components.
Definition: sbuild-auth-null.h:24