Files @ 73e1c0d6e315
Branch filter:

Location: DistRen/src/client/libdistren_job.c - annotation

LordOfWar
-fixed a minor error in finish_frame() where the amount of assigned frames was increased 1 instead of decreased 1.
-mortition() now decreases general_info.jobs_in_queue by one if the job is done and it calls distrenjob_remove() to remove the job from the linked list database.
-frame_finder() now increases the amount of assigned_frames by 1 if a frame to render is found
-distrenjob_remove() now decreases the amount of general_info.jobs_in_queue by 1
-prepare_distrenjob() now initializes assigned_frames and completed_frames at 0
/*
  Copyright 2008 Nathan Phillip Brink, Ethan Zonca, Matt Orlando

  This file is a part of DistRen.

  DistRen is free software: you can redistribute it and/or modify
  it under the terms of the GNU Affero General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  DistRen is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU Affero General Public License for more details.

  You should have received a copy of the GNU Affero General Public License
  along with DistRen.  If not, see <http://www.gnu.org/licenses/>.
*/

/*
  Implementation of distren_job_* functions from distren.h.
 */

#include <libdistren.h>

/**
   @todo Stub
 */
int distren_job_getid(distren_job_t job, char **jobid)
{
  return 1;
}

/**
   @todo Stub
 */
int distren_job_retrieve_file(distren_job_t job, const char *outfile)
{
  return 1;
}

/**
   @todo Stub
 */
int distren_job_free(distren_job_t job)
{
  return 1;
}