From 1f25997d33650dc0ca470d154ee8bc4c21cd37b6 Mon Sep 17 00:00:00 2001 From: Tristan Olive Date: Thu, 21 Jul 2016 10:33:38 -0400 Subject: [PATCH] Drupal: Add pass-through wrappers for job file input and output https://dev.gridrepublic.org/browse/DBOINCP-184 --- .../boinc/modules/boincwork/boincwork.module | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/drupal/sites/default/boinc/modules/boincwork/boincwork.module b/drupal/sites/default/boinc/modules/boincwork/boincwork.module index 5d71d502e5..290d9c9f62 100644 --- a/drupal/sites/default/boinc/modules/boincwork/boincwork.module +++ b/drupal/sites/default/boinc/modules/boincwork/boincwork.module @@ -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