|
|
| version 1.9, 2002/08/01 11:26:47 | version 1.11.2.6.2.3, 2003/03/21 14:49:00 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: program executing for different OS-es decls. | Parser: program executing for different OS-es decls. |
| Copyright (c) 2000,2001, 2002 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2000,2001-2003 ArtLebedev Group (http://www.artlebedev.com) |
| Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) | Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) |
| */ | */ |
| #ifndef PA_EXEC_H | #ifndef PA_EXEC_H |
| #define PA_EXEC_H | #define PA_EXEC_H |
| static const char* IDENT_EXEC_H="$Id$"; | static const char* IDENT_EXEC_H="$Date$"; |
| #include "pa_string.h" | #include "pa_string.h" |
| #include "pa_hash.h" | #include "pa_hash.h" |
| #include "pa_array.h" | #include "pa_array.h" |
| #include "pa_value.h" | |
| /// @return exit code | typedef Hash<const StringBody&, const StringBody*> HashStringString; |
| int pa_exec( | |
| struct PA_exec_result { | |
| int status; ///< exit code | |
| const String& out; | |
| const String& err; | |
| }; | |
| PA_exec_result pa_exec( | |
| bool forced_allow, ///< allow execution regardles of --disable-execs | bool forced_allow, ///< allow execution regardles of --disable-execs |
| const String& file_spec, | const String& file_spec, |
| const Hash *env, ///< 0 | Hash of String | const HashStringString* env, ///< 0 | Hash of String |
| const Array *argv, ///< 0 | Array of command line arguments | const ArrayString& argv, ///< 0 | Array of command line arguments |
| const String& in, String& out, String& err); | String& in); |
| #endif | #endif |