]> git.tdb.fi Git - builder.git/blobdiff - source/misc.h
Set PKG_CONFIG_PATH to include prefix
[builder.git] / source / misc.h
index 6bbf7a0328568d95e4c9b59b2277eb94bed50671..99e41f010be31f2d62e22328c3a601a7d93e869a 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of builder
-Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
+Copyright © 2006-200 Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
 
@@ -20,10 +20,12 @@ enum LibMode
        DYNAMIC
 };
 
-typedef std::list<std::string>     StringList;
+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