Drupal: Add pass-through wrappers for job file input and output

https://dev.gridrepublic.org/browse/DBOINCP-184
This commit is contained in:
Tristan Olive 2016-07-21 10:33:38 -04:00
parent 5c107dbfdd
commit 1f25997d33
1 changed files with 28 additions and 0 deletions

View File

@ -132,6 +132,18 @@ function boincwork_menu() {
'access arguments' => array('access content'),
'type' => MENU_CALLBACK
);
$items['job_file.php'] = array(
'title' => 'Job file input',
'page callback' => 'boincwork_job_file',
'access arguments' => array('access content'),
'type' => MENU_CALLBACK
);
$items['get_output.php'] = array(
'title' => 'Get output file',
'page callback' => 'boincwork_get_output',
'access arguments' => array('access content'),
'type' => MENU_CALLBACK
);
$items['get_project_config.php'] = array(
'title' => 'Project config',
'page callback' => 'boincwork_get_project_config',
@ -1043,6 +1055,22 @@ function boincwork_server_status() {
include_boinc('user/server_status.php');
}
/**
* Page callback for the job input file RPC (job_file.php).
* RPC for managing job input files
*/
function boincwork_job_file() {
include_boinc('user/job_file.php');
}
/**
* Page callback for the output file request RPC (get_output.php).
* Get output file from remote job submission
*/
function boincwork_get_output() {
include_boinc('user/get_output.php');
}
/**
* Page callback for the project config RPC (get_project_config.php).
* Get the project configuration XML; used by client software