IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 13, 2008, 3:30:31 PM (18 years ago)
Author:
eugene
Message:

adding real to Command, Free functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pantasks/init_server.c

    r13541 r16453  
    22
    33int controller      PROTO((int, char **));
    4 int task            PROTO((int, char **));
    5 int task_host       PROTO((int, char **));
    6 int task_nmax       PROTO((int, char **));
     4int task            PROTO((int, char **));
     5int task_host       PROTO((int, char **));
     6int task_nmax       PROTO((int, char **));
    77int 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 **));
     8int task_active     PROTO((int, char **));
     9int task_trange     PROTO((int, char **));
     10int task_macros     PROTO((int, char **));
    1111int task_command    PROTO((int, char **));
    1212int task_options    PROTO((int, char **));
     
    2626
    2727static 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"},
    5252};
    5353
     
    5959  InitJobs ();
    6060  InitJobIDs ();
     61  InitInputs ();
    6162
    6263  for (i = 0; i < sizeof (cmds) / sizeof (Command); i++) {
     
    6465  }
    6566}
     67
     68void FreePantasksServer () {
     69  FreeTasks ();
     70  FreeJobs ();
     71  FreeJobIDs ();
     72  FreeInputs ();
     73}
Note: See TracChangeset for help on using the changeset viewer.