]> git.tdb.fi Git - builder.git/blob - source/misc.h
99e41f010be31f2d62e22328c3a601a7d93e869a
[builder.git] / source / misc.h
1 /* $Id$
2
3 This file is part of builder
4 Copyright © 2006-2009  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MISC_H_
9 #define MISC_H_
10
11 #include <list>
12 #include <map>
13 #include <string>
14 #include <msp/fs/path.h>
15
16 enum LibMode
17 {
18         ALL_STATIC,
19         LOCAL_STATIC,
20         DYNAMIC
21 };
22
23 typedef std::list<std::string> StringList;
24 typedef std::list<Msp::FS::Path> PathList;
25 typedef std::map<std::string, std::string> StringMap;
26
27 /** Runs a command and returns its output as a string.  The exit status of the
28 command is returned in the second parameter if it is not null. */
29 std::string run_command(const StringList &, int * =0);
30
31 #endif