X-Git-Url: https://git.syn-net.org/debian/?p=anytun.git;a=blobdiff_plain;f=src%2FsysExec.h;h=7b99638b659b1e464306e27d0f51305d5b4d8dc4;hp=b5400b975eab05b8005a012e7270c2243cb1f0fd;hb=ef0cacf2508418915d3f64b04003be3c13fed3cc;hpb=ece844834d2cecc028ce81ca283f5d441088580e diff --git a/src/sysExec.h b/src/sysExec.h index b5400b9..7b99638 100644 --- a/src/sysExec.h +++ b/src/sysExec.h @@ -11,7 +11,7 @@ * tunneling and relaying of packets of any protocol. * * - * Copyright (C) 2007-2009 Othmar Gsenger, Erwin Nindl, + * Copyright (C) 2007-2009 Othmar Gsenger, Erwin Nindl, * Christian Pointner * * This file is part of Anytun. @@ -42,33 +42,33 @@ typedef std::list StringList; class SysExec { - public: - SysExec(std::string const& script); - SysExec(std::string const& script, StringVector args); - SysExec(std::string const& script, StringList env); - SysExec(std::string const& script, StringVector args, StringList env); - ~SysExec(); +public: + SysExec(std::string const& script); + SysExec(std::string const& script, StringVector args); + SysExec(std::string const& script, StringList env); + SysExec(std::string const& script, StringVector args, StringList env); + ~SysExec(); - int waitForScript(); - int getReturnCode() const; + int waitForScript(); + int getReturnCode() const; - static void waitAndDestroy(SysExec*& s); + static void waitAndDestroy(SysExec*& s); - private: - void doExec(StringVector args, StringList env); +private: + void doExec(StringVector args, StringList env); - std::string script_; - bool closed_; + std::string script_; + bool closed_; #ifdef _MSC_VER - PROCESS_INFORMATION process_info_; - DWORD return_code_; + PROCESS_INFORMATION process_info_; + DWORD return_code_; #else - pid_t pid_; - int pipefd_; - int return_code_; + pid_t pid_; + int pipefd_; + int return_code_; #endif - + }; #endif