aboutsummaryrefslogtreecommitdiff
path: root/src/stable/process.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-04-03 15:55:17 +0000
committerMike Buland <eichlan@xagasoft.com>2012-04-03 15:55:17 +0000
commit618ffae80369dbf00d505020234d3fe0c4966e85 (patch)
tree768eb5894d314e84840ef22353c58fe5efde8889 /src/stable/process.h
parentd6fcf92f4dd68d16720b284d8018443e85c4e1be (diff)
downloadlibbu++-618ffae80369dbf00d505020234d3fe0c4966e85.tar.gz
libbu++-618ffae80369dbf00d505020234d3fe0c4966e85.tar.bz2
libbu++-618ffae80369dbf00d505020234d3fe0c4966e85.tar.xz
libbu++-618ffae80369dbf00d505020234d3fe0c4966e85.zip
Process works...sorta...in windows.
Diffstat (limited to 'src/stable/process.h')
-rw-r--r--src/stable/process.h25
1 files changed, 21 insertions, 4 deletions
diff --git a/src/stable/process.h b/src/stable/process.h
index d6282e0..f010633 100644
--- a/src/stable/process.h
+++ b/src/stable/process.h
@@ -8,6 +8,10 @@
8#ifndef BU_PROCESS_H 8#ifndef BU_PROCESS_H
9#define BU_PROCESS_H 9#define BU_PROCESS_H
10 10
11#ifdef WIN32
12#include <windows.h>
13#endif
14
11#include <stdint.h> 15#include <stdint.h>
12#include <sys/types.h> 16#include <sys/types.h>
13 17
@@ -135,10 +139,23 @@ namespace Bu
135 bool childCoreDumped(); 139 bool childCoreDumped();
136 140
137 private: 141 private:
138 int iStdIn; 142 class ProcData
139 int iStdOut; 143 {
140 int iStdErr; 144 public:
141 pid_t iPid; 145 ProcData();
146#ifdef WIN32
147 void *hStdIn;
148 void *hStdOut;
149 void *hStdErr;
150 PROCESS_INFORMATION piProcInfo;
151#else
152 int iStdIn;
153 int iStdOut;
154 int iStdErr;
155 pid_t iPid;
156#endif
157 };
158 ProcData pd;
142 int iProcStatus; 159 int iProcStatus;
143 bool bBlocking; 160 bool bBlocking;
144 bool bStdOutEos; 161 bool bStdOutEos;