IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 24, 2006, 3:15:49 PM (20 years ago)
Author:
eugene
Message:

updates to pantasks client/server; new API for command

File:
1 edited

Legend:

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

    r7929 r7960  
    3838};
    3939
    40 /* these are functions which duplicate actions on the
    41    controller.  these could simply pass the command along
    42    to the controller (and should then be in 'controller'),
    43    or they could add / modify the jobs in the scheduler
    44    job stack
    45 
    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 
    5340void InitPantasks () {
    5441 
     
    6249    AddCommand (&cmds[i]);
    6350  }
    64 
    6551}
    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.