X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmisc.h;h=0d6997c53263b02c3dacce41763641ead1a6abab;hb=43bd25ffcb0b4f7882773f4676b209a99cb73c04;hp=a35c0ed3093cf371baf8e6f43b18630c7a16b697;hpb=0d80cabf649b931b26e7055385156c75a7385d35;p=builder.git diff --git a/source/misc.h b/source/misc.h index a35c0ed..0d6997c 100644 --- a/source/misc.h +++ b/source/misc.h @@ -2,11 +2,23 @@ #define MISC_H_ #include +#include #include -#include +#include -typedef std::list PathList; +enum LibMode +{ + ALL_STATIC, + LOCAL_STATIC, + DYNAMIC +}; -std::string run_command(const std::list &); +typedef std::list StringList; +typedef std::list PathList; +typedef std::map StringMap; + +/** 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