Changeset 16453
- Timestamp:
- Feb 13, 2008, 3:30:31 PM (18 years ago)
- Location:
- trunk/Ohana/src/opihi/pantasks
- Files:
-
- 6 edited
-
init.c (modified) (3 diffs)
-
init_client.c (modified) (2 diffs)
-
init_server.c (modified) (4 diffs)
-
pantasks.c.in (modified) (1 diff)
-
pantasks_client.c.in (modified) (1 diff)
-
pantasks_server.c.in (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pantasks/init.c
r13541 r16453 2 2 3 3 int controller PROTO((int, char **)); 4 int task PROTO((int, char **));5 int task_host PROTO((int, char **));6 int task_nmax PROTO((int, char **));4 int task PROTO((int, char **)); 5 int task_host PROTO((int, char **)); 6 int task_nmax PROTO((int, char **)); 7 7 int task_npending PROTO((int, char **)); 8 int task_active PROTO((int, char **));9 int task_trange PROTO((int, char **));10 int task_macros PROTO((int, char **));8 int task_active PROTO((int, char **)); 9 int task_trange PROTO((int, char **)); 10 int task_macros PROTO((int, char **)); 11 11 int task_command PROTO((int, char **)); 12 12 int task_options PROTO((int, char **)); … … 28 28 29 29 static Command cmds[] = { 30 { "active", task_active,"set the active state of a task"},31 { "command", task_command,"define executed command for a task"},32 { "controller", controller,"controller commands"},33 { "delete", delete_job,"delete job"},34 { "halt", halt,"halt the scheduler (no job harvesting)"},35 { "host", task_host,"define host machine for a task"},36 { "ipptool2book", ipptool2book, "convert queue with ipptool output to book"},37 { "kill", kill_job,"kill job"},38 { "nmax", task_nmax,"define maximum number of jobs for a task"},39 { "npending", task_npending, "define maximum number of outstanding jobs for a task"},40 { "options", task_options,"define optional variables associated with the job task"},41 { "periods", task_periods,"define time scales for a task"},42 { "pulse", pulse,"set the scheduler update period"},43 { "run", run,"run the scheduler"},44 { "flush", flush_jobs, "flush all jobs from the queue"},45 { "showtask", showtask,"list a task"},46 { "status", status_sys,"get system or task status"},47 { "stderr", task_stderr,"define a file for the job stderr dump"},48 { "stdout", task_stdout,"define a file for the job stdout dump"},49 { "stop", stop,"stop the scheduler (continue job harvesting)"},50 { "task", task,"define a schedulable task"},51 { "task.exec", task_macros,"define pre-exec macro for a task"},52 { "task.exit", task_macros,"define exit macros for a task"},53 { "trange", task_trange,"define valid/invalid time periods for a task"},54 { "verbose", verbose,"set/toggle verbose mode"},55 { "version", version,"show version information"},30 {1, "active", task_active, "set the active state of a task"}, 31 {1, "command", task_command, "define executed command for a task"}, 32 {1, "controller", controller, "controller commands"}, 33 {1, "delete", delete_job, "delete job"}, 34 {1, "halt", halt, "halt the scheduler (no job harvesting)"}, 35 {1, "host", task_host, "define host machine for a task"}, 36 {1, "ipptool2book", ipptool2book, "convert queue with ipptool output to book"}, 37 {1, "kill", kill_job, "kill job"}, 38 {1, "nmax", task_nmax, "define maximum number of jobs for a task"}, 39 {1, "npending", task_npending, "define maximum number of outstanding jobs for a task"}, 40 {1, "options", task_options, "define optional variables associated with the job task"}, 41 {1, "periods", task_periods, "define time scales for a task"}, 42 {1, "pulse", pulse, "set the scheduler update period"}, 43 {1, "run", run, "run the scheduler"}, 44 {1, "flush", flush_jobs, "flush all jobs from the queue"}, 45 {1, "showtask", showtask, "list a task"}, 46 {1, "status", status_sys, "get system or task status"}, 47 {1, "stderr", task_stderr, "define a file for the job stderr dump"}, 48 {1, "stdout", task_stdout, "define a file for the job stdout dump"}, 49 {1, "stop", stop, "stop the scheduler (continue job harvesting)"}, 50 {1, "task", task, "define a schedulable task"}, 51 {1, "task.exec", task_macros, "define pre-exec macro for a task"}, 52 {1, "task.exit", task_macros, "define exit macros for a task"}, 53 {1, "trange", task_trange, "define valid/invalid time periods for a task"}, 54 {1, "verbose", verbose, "set/toggle verbose mode"}, 55 {1, "version", version, "show version information"}, 56 56 }; 57 57 … … 68 68 } 69 69 } 70 71 void FreePantasks () { 72 FreeTasks (); 73 FreeJobs (); 74 FreeJobIDs (); 75 } -
trunk/Ohana/src/opihi/pantasks/init_client.c
r7892 r16453 8 8 9 9 static Command cmds[] = { 10 { "task", invalid, "define a schedulable task"},11 { "task.exit", invalid, "define exit macros for a task"},12 { "task.exec", invalid, "define pre-exec macro for a task"},10 {1, "task", invalid, "define a schedulable task"}, 11 {1, "task.exit", invalid, "define exit macros for a task"}, 12 {1, "task.exec", invalid, "define pre-exec macro for a task"}, 13 13 }; 14 14 … … 22 22 23 23 } 24 25 void FreePantasksClient () { 26 } -
trunk/Ohana/src/opihi/pantasks/init_server.c
r13541 r16453 2 2 3 3 int controller PROTO((int, char **)); 4 int task PROTO((int, char **));5 int task_host PROTO((int, char **));6 int task_nmax PROTO((int, char **));4 int task PROTO((int, char **)); 5 int task_host PROTO((int, char **)); 6 int task_nmax PROTO((int, char **)); 7 7 int task_npending PROTO((int, char **)); 8 int task_active PROTO((int, char **));9 int task_trange PROTO((int, char **));10 int task_macros PROTO((int, char **));8 int task_active PROTO((int, char **)); 9 int task_trange PROTO((int, char **)); 10 int task_macros PROTO((int, char **)); 11 11 int task_command PROTO((int, char **)); 12 12 int task_options PROTO((int, char **)); … … 26 26 27 27 static Command cmds[] = { 28 { "active", task_active,"set the active state of a task"},29 { "command", task_command,"define executed command for a task"},30 { "controller", controller,"controller commands"},31 { "delete", delete_job,"delete job"},32 { "host", task_host,"define host machine for a task"},33 { "ipptool2book", ipptool2book, "convert queue with ipptool output to book"},34 { "kill", kill_job,"kill job"},35 { "nmax", task_nmax,"define maximum number of jobs for a task"},36 { "options", task_options, "define optional variables associated with the job task"},37 { "npending", task_npending, "define maximum number of outstanding jobs for a task"},38 { "periods", task_periods,"define time scales for a task"},39 { "pulse", pulse,"set the scheduler update period"},40 { "flush", flush_jobs, "flush all jobs from the queue"},41 { "server", server,"server-specific commands"},42 { "showtask", showtask,"list a task"},43 { "status", status_server, "get system status"},44 { "stderr", task_stderr,"define a file for the job stderr dump"},45 { "stdout", task_stdout,"define a file for the job stdout dump"},46 { "task", task,"define a schedulable task"},47 { "task.exec", task_macros,"define pre-exec macro for a task"},48 { "task.exit", task_macros,"define exit macros for a task"},49 { "trange", task_trange,"define valid/invalid time periods for a task"},50 { "verbose", verbose,"set/toggle verbose mode"},51 { "version", version,"show version information"},28 {1, "active", task_active, "set the active state of a task"}, 29 {1, "command", task_command, "define executed command for a task"}, 30 {1, "controller", controller, "controller commands"}, 31 {1, "delete", delete_job, "delete job"}, 32 {1, "host", task_host, "define host machine for a task"}, 33 {1, "ipptool2book", ipptool2book, "convert queue with ipptool output to book"}, 34 {1, "kill", kill_job, "kill job"}, 35 {1, "nmax", task_nmax, "define maximum number of jobs for a task"}, 36 {1, "options", task_options, "define optional variables associated with the job task"}, 37 {1, "npending", task_npending, "define maximum number of outstanding jobs for a task"}, 38 {1, "periods", task_periods, "define time scales for a task"}, 39 {1, "pulse", pulse, "set the scheduler update period"}, 40 {1, "flush", flush_jobs, "flush all jobs from the queue"}, 41 {1, "server", server, "server-specific commands"}, 42 {1, "showtask", showtask, "list a task"}, 43 {1, "status", status_server, "get system status"}, 44 {1, "stderr", task_stderr, "define a file for the job stderr dump"}, 45 {1, "stdout", task_stdout, "define a file for the job stdout dump"}, 46 {1, "task", task, "define a schedulable task"}, 47 {1, "task.exec", task_macros, "define pre-exec macro for a task"}, 48 {1, "task.exit", task_macros, "define exit macros for a task"}, 49 {1, "trange", task_trange, "define valid/invalid time periods for a task"}, 50 {1, "verbose", verbose, "set/toggle verbose mode"}, 51 {1, "version", version, "show version information"}, 52 52 }; 53 53 … … 59 59 InitJobs (); 60 60 InitJobIDs (); 61 InitInputs (); 61 62 62 63 for (i = 0; i < sizeof (cmds) / sizeof (Command); i++) { … … 64 65 } 65 66 } 67 68 void FreePantasksServer () { 69 FreeTasks (); 70 FreeJobs (); 71 FreeJobIDs (); 72 FreeInputs (); 73 } -
trunk/Ohana/src/opihi/pantasks/pantasks.c.in
r13479 r16453 66 66 QuitKapa (); 67 67 QuitController (); 68 ConfigFree (); 69 70 FreeBasic (); 71 FreeData (); 72 FreePantasks (); 73 68 74 return; 69 75 } -
trunk/Ohana/src/opihi/pantasks/pantasks_client.c.in
r13479 r16453 55 55 void cleanup () { 56 56 QuitKapa (); 57 ConfigFree (); 58 59 FreeBasic (); 60 FreeData (); 61 FreeAstro (); 62 FreePantasksClient (); 57 63 return; 58 64 } -
trunk/Ohana/src/opihi/pantasks/pantasks_server.c.in
r15791 r16453 44 44 InitData (); 45 45 InitPantasksServer (); 46 47 InitInputs ();48 46 49 47 { … … 96 94 QuitKapa (); 97 95 QuitController (); 96 ConfigFree (); 97 InitBasic (); 98 InitData (); 99 InitPantasksServer (); 98 100 return; 99 101 }
Note:
See TracChangeset
for help on using the changeset viewer.
