]> git.tdb.fi Git - builder.git/blobdiff - source/misc.h
Reorder class members
[builder.git] / source / misc.h
index ae2ff69437354231395ce3e3a92f79b4b3d21838..508a9b0cf6a0fd0b48c876c91742df1695ac69b2 100644 (file)
@@ -1,9 +1,31 @@
+/* $Id$
+
+This file is part of builder
+Copyright © 2006-2009  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
 #ifndef MISC_H_
 #define MISC_H_
 
 #include <list>
+#include <map>
 #include <string>
+#include <msp/fs/path.h>
+
+enum LibMode
+{
+       ALL_STATIC,
+       LOCAL_STATIC,
+       DYNAMIC
+};
+
+typedef std::list<std::string> StringList;
+typedef std::list<Msp::FS::Path> PathList;
+typedef std::map<std::string, std::string> StringMap;
 
-std::string run_command(const std::list<std::string> &);
+/** Runs a command and returns its output as a string.  The exit status of the
+command is lost. */
+std::string run_command(const StringList &);
 
 #endif