diff options
Diffstat (limited to 'src/common/Utilities/StartProcess.h')
-rw-r--r-- | src/common/Utilities/StartProcess.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/common/Utilities/StartProcess.h b/src/common/Utilities/StartProcess.h index 71452315e77..b99a24a9f55 100644 --- a/src/common/Utilities/StartProcess.h +++ b/src/common/Utilities/StartProcess.h @@ -15,8 +15,8 @@ * with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef Process_h__ -#define Process_h__ +#ifndef TRINITYCORE_START_PROCESS_H +#define TRINITYCORE_START_PROCESS_H #include "Define.h" #include <future> @@ -32,8 +32,8 @@ namespace Trinity /// When an input path is given, the file will be routed to the processes stdin. /// When the process is marked as secure no arguments are leaked to logs. /// Note that most executables expect it's name as the first argument. -TC_COMMON_API int StartProcess(std::string const& executable, std::vector<std::string> const& args, - std::string const& logger, std::string input_file = "", +TC_COMMON_API int32 StartProcess(std::string executable, std::vector<std::string> args, + std::string logger, std::string input_file = "", bool secure = false); /// Platform and library independent representation @@ -45,7 +45,7 @@ public: /// Returns the future which contains the result of the process /// as soon it is finished. - virtual std::future<int>& GetFutureResult() = 0; + virtual std::future<int32>& GetFutureResult() = 0; /// Tries to terminate the process virtual void Terminate() = 0; @@ -67,4 +67,4 @@ TC_COMMON_API std::string SearchExecutableInPath(std::string const& filename); } // namespace Trinity -#endif // Process_h__ +#endif // TRINITYCORE_START_PROCESS_H |