Changeset 7960 for trunk/Ohana/src/opihi/pantasks/init.c
- Timestamp:
- Jul 24, 2006, 3:15:49 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pantasks/init.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pantasks/init.c
r7929 r7960 38 38 }; 39 39 40 /* these are functions which duplicate actions on the41 controller. these could simply pass the command along42 to the controller (and should then be in 'controller'),43 or they could add / modify the jobs in the scheduler44 job stack45 46 {"job", job, "add job"},47 {"kill", kill_sh, "kill job"},48 {"delete", delete, "delete job"},49 {"stdout", stdout_sh, "get stdout buffer for job"},50 {"stderr", stderr_sh, "get stderr buffer for job"},51 */52 53 40 void InitPantasks () { 54 41 … … 62 49 AddCommand (&cmds[i]); 63 50 } 64 65 51 } 66 67 int server PROTO((int, char **));68 69 static Command server_cmds[] = {70 {"server", server, "server-specific commands"},71 };72 73 void InitPantasksServer () {74 75 int i;76 77 InitTasks ();78 InitJobs ();79 InitJobIDs ();80 81 for (i = 0; i < sizeof (cmds) / sizeof (Command); i++) {82 AddCommand (&cmds[i]);83 }84 for (i = 0; i < sizeof (server_cmds) / sizeof (Command); i++) {85 AddCommand (&server_cmds[i]);86 }87 88 }
Note:
See TracChangeset
for help on using the changeset viewer.
