Index: trunk/Ohana/src/opihi/include/pcontrol.h
===================================================================
--- trunk/Ohana/src/opihi/include/pcontrol.h	(revision 4684)
+++ trunk/Ohana/src/opihi/include/pcontrol.h	(revision 4689)
@@ -1,5 +1,4 @@
-# include "opihi.h"
-# include <sys/types.h>
-# include <sys/wait.h>
+# include "data.h"
+# include "basic.h"
 
 typedef struct timeval Ptime;
@@ -105,7 +104,5 @@
 } Stack;
 
-/* these should be loaded from ConfigInit or from opihi variables */
-static char *CONNECT;  /* connection method (ssh, rsh, etc) */
-static char *PCLIENT;  /* shell on remote host (eg, pclient) */
+/* XXX if this is hard-wired, we can't change shell name in StartHost */
 # define PCLIENT_PROMPT "pclient:"
 
@@ -118,4 +115,6 @@
 int  FlushIOBuffer (IOBuffer *buffer);
 void FreeIOBuffer (IOBuffer *buffer);
+
+void InitPcontrol ();
 
 void *GetStack (Stack *stack, int where);
@@ -155,5 +154,4 @@
 int rconnect (char *command, char *hostname, char *shell, int *stdio);
 int CheckHost (Host *host);
-char *memstr (char *m1, char *m2, int n);
 Stack *GetJobStack (int StackID);
 int PutJob (Job *job, int StackID, int where);
@@ -168,2 +166,13 @@
 Host *UnlinkJobAndHost (Job *job);
 void LinkJobAndHost (Job *job, Host *host);
+int StopHost (Host *host);
+
+int PrintJobStack (int Nstack);
+int PrintHostStack (int Nstack);
+void InitJobStacks ();
+void InitHostStacks ();
+void DownHost (Host *host);
+void OffHost (Host *host);
+int DownHosts ();
+int VerboseMode ();
+int StartJob (Job *job);
