IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 11, 2005, 8:45:09 AM (21 years ago)
Author:
eugene
Message:

pcontrol work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pcontrol/HostOps.c

    r3187 r3189  
    4848}
    4949
    50 int FindHost (char *name, int QueueID) {
     50int FindHost (IDtype HostID, int QueueID) {
     51
     52  Queue *queue;
     53
     54  queue = GetHostQueue (QueueID);
     55  if (queue == NULL) return (-2);
     56
     57  for (i = 0; i < queue[0].Nobject; i++) {
     58    host = (Host *) queue[0].object;
     59    if (host[0].HostID == HostID) {
     60      return (i);
     61    }
     62  }
     63  return (-1);
     64}
     65
     66int FindNamedHost (char *name, int QueueID) {
    5167
    5268  Queue *queue;
     
    7490  host[0].stdout   = 0;
    7591  host[0].stderr   = 0;
    76   host[0].ID       = NextHostID();
     92  host[0].HostID   = NextHostID();
    7793
    7894  host[0].markoff  = FALSE;
Note: See TracChangeset for help on using the changeset viewer.