Index: trunk/Ohana/src/opihi/include/pcontrol.h
===================================================================
--- trunk/Ohana/src/opihi/include/pcontrol.h	(revision 19124)
+++ trunk/Ohana/src/opihi/include/pcontrol.h	(revision 20047)
@@ -83,4 +83,11 @@
 } Fifo;
 
+typedef struct {
+  IOBuffer     buffer;
+  int          completed;
+  int          size;
+  int          requested;
+} JobOutput;
+
 /* data to define a job */
 typedef struct {
@@ -91,11 +98,9 @@
   int          exit_status;
   int          Reset;
-  int          stdout_size;
-  int          stderr_size;
   JobMode      mode;
   JobStat      state;
   JobStat      stack;
-  IOBuffer     stdout_buff;
-  IOBuffer     stderr_buff;
+  JobOutput    stdout;
+  JobOutput    stderr;
   Ptime        start;
   Ptime        stop;
@@ -199,5 +204,5 @@
 int CheckIdleHost (Host *host);
 int CheckDoneJob (Job *job, Host *host);
-int GetJobOutput (char *command, Host *host, IOBuffer *buffer, int Nbytes);
+int GetJobOutput (char *command, Host *host, JobOutput *output);
 int rconnect (char *command, char *hostname, char *shell, int *stdio);
 
@@ -247,4 +252,6 @@
 
 /*** JobOps.c ***/
+int InitJobOutput (JobOutput *output);
+int ResetJobOutput (JobOutput *output);
 void   InitJobStacks ();
 void   FreeJobStacks ();
