]> git.tdb.fi Git - builder.git/blobdiff - source/misc.h
Replace per-file copyright notices with a single file
[builder.git] / source / misc.h
index 692ad6f4f3f3f3e7a59565301dd95e20620587cb..0d6997c53263b02c3dacce41763641ead1a6abab 100644 (file)
@@ -1,17 +1,10 @@
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MISC_H_
 #define MISC_H_
 
 #include <list>
 #include <map>
 #include <string>
-#include <msp/path/path.h>
+#include <msp/fs/path.h>
 
 enum LibMode
 {
@@ -20,10 +13,12 @@ enum LibMode
        DYNAMIC
 };
 
-typedef std::list<std::string>     StringList;
-typedef std::list<Msp::Path> PathList;
+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 StringList &);
+/** Runs a command and returns its output as a string.  The exit status of the
+command is returned in the second parameter if it is not null. */
+std::string run_command(const StringList &, int * =0);
 
 #endif