Changeset 8424 for trunk/Ohana/src/opihi/pcontrol/HostOps.c
- Timestamp:
- Aug 18, 2006, 1:44:51 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pcontrol/HostOps.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pcontrol/HostOps.c
r8296 r8424 15 15 } 16 16 17 char *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 17 29 Stack *GetHostStack (int StackID) { 18 30 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); 32 36 } 33 37 gprint (GP_ERR, "error: unknown host stack : programming error\n");
Note:
See TracChangeset
for help on using the changeset viewer.
