Changeset 23530 for trunk/Ohana/src/opihi/pantasks/controller_host.c
- Timestamp:
- Mar 25, 2009, 11:56:09 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pantasks/controller_host.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pantasks/controller_host.c
r19125 r23530 15 15 16 16 if (argc != 3) goto usage; 17 if (max_threads && strcasecmp (argv[1], "ADD")) goto usage; 17 18 18 19 /* start controller connection (if needed) */ … … 27 28 if (!strcasecmp (argv[1], "ADD")) { 28 29 AddHost (argv[2], max_threads); 29 } else { 30 if (max_threads) goto usage; 31 } 30 } 32 31 33 32 if (!strcasecmp (argv[1], "DELETE")) { … … 42 41 InitIOBuffer (&buffer, 0x100); 43 42 44 SerialThreadLock ();45 43 status = ControllerCommand (command, CONTROLLER_PROMPT, &buffer); 46 SerialThreadUnlock ();47 44 48 45 if (status) gwrite (buffer.buffer, 1, buffer.Nbuffer, GP_LOG); … … 57 54 return (FALSE); 58 55 } 59 60 /* should I keep an internal host table so I can reload the61 hosts if the controller exits?62 63 alternatively, that could be a user-level choice64 */
Note:
See TracChangeset
for help on using the changeset viewer.
