IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 18, 2006, 1:44:51 PM (20 years ago)
Author:
eugene
Message:

successful implementation of the threaded version of pcontrol

File:
1 edited

Legend:

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

    r8296 r8424  
    1515}
    1616
     17char *GetHostStackName (int StackID) {
     18  switch (StackID) {
     19    case PCONTROL_HOST_IDLE: return ("IDLE");
     20    case PCONTROL_HOST_DOWN: return ("DOWN");
     21    case PCONTROL_HOST_DONE: return ("DONE");
     22    case PCONTROL_HOST_BUSY: return ("BUSY");
     23    case PCONTROL_HOST_OFF:  return ("OFF");
     24  }
     25  gprint (GP_ERR, "error: unknown host stack : programming error\n");
     26  exit (1);
     27}
     28
    1729Stack *GetHostStack (int StackID) {
    1830  switch (StackID) {
    19     case PCONTROL_HOST_IDLE:
    20       return (HostPool_Idle);
    21     case PCONTROL_HOST_DOWN:
    22       return (HostPool_Down);
    23     case PCONTROL_HOST_DONE:
    24       return (HostPool_Done);
    25     case PCONTROL_HOST_BUSY:
    26       return (HostPool_Busy);
    27     case PCONTROL_HOST_OFF:
    28       return (HostPool_Off);
    29     default:
    30       gprint (GP_ERR, "error: unknown host stack : programming error\n");
    31       exit (1);
     31    case PCONTROL_HOST_IDLE: return (HostPool_Idle);
     32    case PCONTROL_HOST_DOWN: return (HostPool_Down);
     33    case PCONTROL_HOST_DONE: return (HostPool_Done);
     34    case PCONTROL_HOST_BUSY: return (HostPool_Busy);
     35    case PCONTROL_HOST_OFF:  return (HostPool_Off);
    3236  }
    3337  gprint (GP_ERR, "error: unknown host stack : programming error\n");
Note: See TracChangeset for help on using the changeset viewer.