]> git.tdb.fi Git - builder.git/blob - source/misc.h
Replace per-file copyright notices with a single file
[builder.git] / source / misc.h
1 #ifndef MISC_H_
2 #define MISC_H_
3
4 #include <list>
5 #include <map>
6 #include <string>
7 #include <msp/fs/path.h>
8
9 enum LibMode
10 {
11         ALL_STATIC,
12         LOCAL_STATIC,
13         DYNAMIC
14 };
15
16 typedef std::list<std::string> StringList;
17 typedef std::list<Msp::FS::Path> PathList;
18 typedef std::map<std::string, std::string> StringMap;
19
20 /** Runs a command and returns its output as a string.  The exit status of the
21 command is returned in the second parameter if it is not null. */
22 std::string run_command(const StringList &, int * =0);
23
24 #endif