Index: trunk/Ohana/src/opihi/include/pcontrol.h
===================================================================
--- trunk/Ohana/src/opihi/include/pcontrol.h	(revision 29540)
+++ trunk/Ohana/src/opihi/include/pcontrol.h	(revision 32632)
@@ -119,4 +119,5 @@
   int          exit_status;
   int          Reset;
+  int          priority;
   JobMode      mode;
   JobStat      state;
@@ -152,4 +153,25 @@
 } Host;
 
+# if (USE_LLIST)
+typedef struct StackItem {
+    StackItem *next;
+    StackItem *prev;
+    void *object;
+    char *name;
+    int   id;
+} StackItem;
+
+/* the Jobs and Hosts are managed in a set of Stacks which define their state */
+typedef struct {
+    StackItem *head;
+    StackItem *tail; // use this?
+    int    Nobject;
+# ifdef THREADED    
+  pthread_mutex_t mutex;
+# endif
+} Stack;
+
+# else
+
 /* the Jobs and Hosts are managed in a set of Stacks which define their state */
 typedef struct {
@@ -163,4 +185,5 @@
 # endif
 } Stack;
+# endif
 
 /* XXX if this is hard-wired, we can't change shell name in StartHost */
@@ -291,5 +314,5 @@
 Job   *PullJobByID (IDtype JobID, int *StackID);
 Job   *PullJobFromStackByID (int StackID, int ID);
-IDtype AddJob (char *hostname, JobMode mode, int timeout, int argc, char **argv, int Nxhosts, char **xhosts);
+IDtype AddJob (char *hostname, JobMode mode, int timeout, int priority, int argc, char **argv, int Nxhosts, char **xhosts);
 void   DelJob (Job *job);
 Host  *UnlinkJobAndHost (Job *job);
