summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/Process.h.in
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-07-07 12:36:40 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-07-07 12:36:40 (GMT)
commit125b7956378ef65bfbd23751054decfa44169db9 (patch)
treebb52976a6a79afd86aa9c980295c1f360b3b2a8c /Source/kwsys/Process.h.in
parent179abe7ffeb125ef4bfa7c852dfad03544d66194 (diff)
downloadCMake-125b7956378ef65bfbd23751054decfa44169db9.zip
CMake-125b7956378ef65bfbd23751054decfa44169db9.tar.gz
CMake-125b7956378ef65bfbd23751054decfa44169db9.tar.bz2
ENH: Start working on Working Directory support
Diffstat (limited to 'Source/kwsys/Process.h.in')
-rw-r--r--Source/kwsys/Process.h.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/kwsys/Process.h.in b/Source/kwsys/Process.h.in
index 2552c17..cc45299 100644
--- a/Source/kwsys/Process.h.in
+++ b/Source/kwsys/Process.h.in
@@ -31,6 +31,7 @@
#define kwsysProcess_Delete kwsys(Process_Delete)
#define kwsysProcess_SetCommand kwsys(Process_SetCommand)
#define kwsysProcess_SetTimeout kwsys(Process_SetTimeout)
+#define kwsysProcess_SetWorkingDirectory kwsys(Process_SetWorkingDirectory)
#define kwsysProcess_State_Starting kwsys(Process_State_Starting)
#define kwsysProcess_State_Error kwsys(Process_State_Error)
#define kwsysProcess_State_Exception kwsys(Process_State_Exception)
@@ -98,6 +99,12 @@ kwsysEXPORT void kwsysProcess_SetCommand(kwsysProcess* cp,
kwsysEXPORT void kwsysProcess_SetTimeout(kwsysProcess* cp, double timeout);
/**
+ * Set the working directory for the child process. The working directory can
+ * be absolute or relative to the current directory.
+ */
+kwsysEXPORT void kwsysProcess_SetWorkingDirectory(kwsysProcess* cp, const char* dir);
+
+/**
* Get the current state of the Process instance. Possible states are:
*
* kwsysProcess_State_Starting = Execute has not yet been called.
@@ -254,6 +261,7 @@ kwsysEXPORT void kwsysProcess_Kill(kwsysProcess* cp);
# undef kwsysProcess_Delete
# undef kwsysProcess_SetCommand
# undef kwsysProcess_SetTimeout
+# undef kwsysProcess_SetWorkingDirectory
# undef kwsysProcess_State_Starting
# undef kwsysProcess_State_Error
# undef kwsysProcess_State_Exception