IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16453


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

adding real to Command, Free functions

Location:
trunk/Ohana/src/opihi/pantasks
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pantasks/init.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 **));
     
    2828
    2929static 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"},
    5656};
    5757
     
    6868  }
    6969}
     70
     71void FreePantasks () {
     72  FreeTasks ();
     73  FreeJobs ();
     74  FreeJobIDs ();
     75}
  • trunk/Ohana/src/opihi/pantasks/init_client.c

    r7892 r16453  
    88
    99static 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"},
    1313};
    1414
     
    2222
    2323}
     24
     25void FreePantasksClient () {
     26}
  • 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}
  • trunk/Ohana/src/opihi/pantasks/pantasks.c.in

    r13479 r16453  
    6666  QuitKapa ();
    6767  QuitController ();
     68  ConfigFree ();
     69
     70  FreeBasic ();
     71  FreeData ();
     72  FreePantasks ();
     73
    6874  return;
    6975}
  • trunk/Ohana/src/opihi/pantasks/pantasks_client.c.in

    r13479 r16453  
    5555void cleanup () {
    5656  QuitKapa ();
     57  ConfigFree ();
     58
     59  FreeBasic ();
     60  FreeData ();
     61  FreeAstro ();
     62  FreePantasksClient ();
    5763  return;
    5864}
  • trunk/Ohana/src/opihi/pantasks/pantasks_server.c.in

    r15791 r16453  
    4444  InitData ();
    4545  InitPantasksServer ();
    46  
    47   InitInputs ();
    4846
    4947  {
     
    9694  QuitKapa ();
    9795  QuitController ();
     96  ConfigFree ();
     97  InitBasic ();
     98  InitData ();
     99  InitPantasksServer ();
    98100  return;
    99101}
Note: See TracChangeset for help on using the changeset viewer.